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

new {function} tag allows recursion
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
FractalizeR
Smarty Rookie


Joined: 01 Nov 2003
Posts: 16

PostPosted: Thu Jun 11, 2009 6:25 am    Post subject: Reply with quote

This {function} looks like Smarty becomes something like PHP inside PHP... Not just a template engine, but a complete language already. Don't know if that is good or... ? Smile
_________________
Things are changing,
But nothing changes,
And still there are changes
Back to top
View user's profile Send private message Send e-mail
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7365
Location: Lincoln Nebraska, USA

PostPosted: Thu Jun 11, 2009 3:18 pm    Post subject: Reply with quote

Not quite. The template functions are useful for creating a small sequence of (presentation) logic that is repeated or recursively called, such as displaying a directory tree. You can't do this very elegantly with a smarty plugin, as presentation elements within the loop are no longer defined within the template without some more complicated fetching in the plugin.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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