Re: [SMARTY] Re: [SMARTY-DEV] $smarty.session.object doesn't work in 2.5.0
| From: | Wom.bat | Date: | Tue, 15 Apr 2003 15:33:17 +0000 |
| Subject: | Re: [SMARTY] Re: [SMARTY-DEV] $smarty.session.object doesn't work in 2.5.0 | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1161@lists.php.net to get a copy of this message | ||
> yep. the problem lies in how $smarty...-refs are compiled now. you
> have to workaround it in the moment:
>
> in php:
> $smarty->assign_by_ref('session', $_SESSION);
>
> and then in $tpl:
> {$session.user->property}
hmm... is there any way to inject this $session object into $smarty.* ?
Or can you tell me the line in Smarty.class.php I need to change, or can you
fix it in CVS?
I use $smarty.session in nearly all templates, so I'd have to change it to
$session in all of them, and change it back after you have fixed it in CVS.
Or just tell me you'll never do it, I can live with that for sure :)
Regards,
David