Re: [SMARTY-DEV] patch for run function
| From: | Tom Sommer | Date: | Sun, 02 Mar 2003 02:48:28 +0000 |
| Subject: | Re: [SMARTY-DEV] patch for run function | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-883@lists.php.net to get a copy of this message | ||
On Sat, 1 Mar 2003 20:42:12 -0600, Jason Sweat wrote:
> I have not taken the time to completly review your patch, but I think if I
> wanted to implement this kind of functionality, I would probably just extend
> my custom smarty class to override the display function.
> i.e.
> class my_smarty extends smarty {
> function display($tpl)
> {
> $this->assign('myvar', 'myval');
> parent::display($tpl);
> }
> }
I can see that... but I don't have a custom smarty class, of cause I could
make one, but I would rather do this :)
--
Tom Sommer, denmark
www.tsn.dk - www.dreamcoder.dk