Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty takes my php function instead of my modifier !

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
Dertron
Smarty n00b


Joined: 30 Jul 2008
Posts: 3

PostPosted: Mon Sep 30, 2013 3:25 pm    Post subject: Smarty takes my php function instead of my modifier ! Reply with quote

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
View user's profile Send private message Visit poster's website
Dertron
Smarty n00b


Joined: 30 Jul 2008
Posts: 3

PostPosted: Mon Sep 30, 2013 3:54 pm    Post subject: Reply with quote

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 ! Very Happy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP