|
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 |
apeiros Smarty n00b
Joined: 24 Apr 2003 Posts: 4
|
Posted: Thu Apr 24, 2003 12:37 pm Post subject: how to prohibit smarty-functions in certain templates? |
|
|
Hi there
I have a setup of smarty which allows the users to define their own custom templates to be used. due to some reason I don't want the users to be able to e.g. use the {php} function. Is there a way to disable the functions for the templates?
best regards
Stefan Rusterholz |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
|
Back to top |
|
apeiros Smarty n00b
Joined: 24 Apr 2003 Posts: 4
|
Posted: Thu Apr 24, 2003 1:24 pm Post subject: |
|
|
Thanks
I saw the $php_handling but as stated in the docs "Note that this does NOT affect php code within {php}{/php} tags in the template."
But I obviously missed the $security which seems to do what I want it to do
Thank you for pointing me to it!
best regards
Stefan Rusterholz |
|
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
|