|
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 |
jimbross Smarty n00b
Joined: 13 Jul 2011 Posts: 1
|
Posted: Wed Jul 13, 2011 2:59 pm Post subject: setPluginsDir instead or plugins_dir? |
|
|
Which is the recommended way to pass an array of plugin directories in Smarty, v.3.0.8:
setPluginsDir or plugins_dir? |
|
Back to top |
|
rodneyrehm Administrator
Joined: 30 Mar 2007 Posts: 674 Location: Germany, border to Switzerland
|
Posted: Wed Jul 13, 2011 3:15 pm Post subject: |
|
|
setTemplateDir() is the favoured way. We did not update all the docs to reflect that, yet. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Jul 13, 2011 3:18 pm Post subject: |
|
|
Both approaches technically work in 3.0.8. Ultimately it is good practice to use setPluginsDir() so that any internal sanitization will be addressed. 3.1+ enforces the use of this method. Direct access will still work, albeit slower since it gets caught and funneled through the setter. |
|
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
|