|
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 |
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Sat Dec 31, 2016 3:31 am Post subject: Overload $Smarty->assign(), Hints? |
|
|
I am wanting to do this:
Code: | $Smarty->assign(String $name, Mixed $val, [options, ...]) |
where the options are anything I want to do.
Specifically:
Code: | $Smarty->assign(String $name, Mixed $val, nodebug) |
The specific example will, at some point in compiling the template with the {debug} function in it, remove (or skip over) that template variable from the collection of template variables when rendering the debug template.
Any hints? |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sat Dec 31, 2016 5:32 pm Post subject: |
|
|
Hint: Don't do that.
It will, inevitable, confuse you and anyone else trying to debug the template. |
|
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
|