|
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 |
Dertron Smarty n00b
Joined: 30 Jul 2008 Posts: 3
|
Posted: Mon Sep 30, 2013 3:25 pm Post subject: Smarty takes my php function instead of my modifier ! |
|
|
Hello,
I was using Smarty 2, and I am just beginning with Smarty 3. My problem is that I can't use my own modifiers anymore.
For example, I have a modifier called "smarty_modifier_my_test". In my plugins folder, there is a modifier.my_test.php file containing a smarty_modifier_my_test function. And I get the following error : "unknown modifier my_test". But if I define a "my_test" function in my php code, then it works, but it uses my php function and not the Smarty modifier.
Does anyone know what to do ?!
Thanks for your help... |
|
Back to top |
|
Dertron Smarty n00b
Joined: 30 Jul 2008 Posts: 3
|
Posted: Mon Sep 30, 2013 3:54 pm Post subject: |
|
|
I found the problem...
From Smarty 3.1, you can't use $smarty->plugins_dir[] anymore, you have to use $smarty->setPluginsDir($plugins_dir) instead ! |
|
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
|