Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

PHP Tags

 
Post new topic   Reply to topic    Smarty Forum Index -> Frameworks
View previous topic :: View next topic  
Author Message
munvo
Smarty n00b


Joined: 18 Nov 2008
Posts: 2

PostPosted: Tue Nov 18, 2008 3:13 pm    Post subject: PHP Tags Reply with quote

Ello,

I want to know how I can go about running php tags in a string that contains html too? I have looked through the smarty system and I think I have missed it. I am building my own system which includes smarty for parts but not for my db side.

Thanks so much for the help!


Last edited by munvo on Wed May 05, 2010 11:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5066
Location: Hamburg / Germany

PostPosted: Tue Nov 18, 2008 4:42 pm    Post subject: Reply with quote

{php} tags should be avoided whenever possible. Best solution is to write is to write a function plugin. See documentation for details.
Back to top
View user's profile Send private message
munvo
Smarty n00b


Joined: 18 Nov 2008
Posts: 2

PostPosted: Tue Nov 18, 2008 8:57 pm    Post subject: Reply with quote

By any chance can you quote for me the pre-made function in smart that does {php}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Frameworks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP