Re: New custom function
| From: | Andreas Kossmeier | Date: | Sun, 18 Nov 2001 08:12:49 +0000 |
| Subject: | Re: New custom function | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1939@lists.php.net to get a copy of this message | ||
Peter Bowyer wrote:
> I would make myself a template called celldata.tpl containing the
> above. Now, in my PHP script I would have the following:
> [...]
> $cells[] = $smarty->fetch("celldata.tpl");
sure. you can do that whenever you want, but there is no strict
seperation of functionality and presentation. as a designer e.g. i don't
want this restriction, since i have to use a subtemplate. currently
there is no way to define such tags for smarty, maybe in future?
btw: for now you could use an optional attribute with the path to the
subtemplate to give the designer more control...
andreas
--
andreas kossmeier
bergfex.at - http://www.bergfex.at