Variable modifiers - support OO?
| From: | Andrew S. Nagy | Date: | Wed, 02 Apr 2003 22:28:31 +0000 |
| Subject: | Variable modifiers - support OO? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9045@lists.php.net to get a copy of this message | ||
Monte, do you think that allowing the variable modifier functions to support
methods is out of the scope of Smarty?
I would like to be able to do the following:
{foreach from=$objList item=obj}
{$obj->getTimestamp()|date_format:%r}
{/foreach}
Am I trying to take Smarty too far again, or do you think this is a
plausible idea?
____________________________________________
Andrew S. Nagy
Lead Applications Developer
Living SchoolBook
Syracuse University
(315) 443-3450
http://lsb.syr.edu