|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
bimal Smarty Elite
Joined: 19 Apr 2007 Posts: 423
|
Posted: Thu Aug 13, 2009 9:41 pm Post subject: Short names for reserved variables |
|
|
Writing something like {$session.name} would be be better than {$smarty.session.name}. All other variables can be reduced, if is reserved. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Aug 14, 2009 4:44 pm Post subject: |
|
|
If we did that, we may step on something that already uses $session in the templates. $smarty is the only reserved variable.
If you want them shortened up, assign it yourself.
Code: | $smarty->assign('session',$_SESSION); |
|
|
Back to top |
|
|
|
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
|