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

2.6 rc1 - plugins

 
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 -> Bugs
View previous topic :: View next topic  
Author Message
atu
Smarty Regular


Joined: 18 Apr 2003
Posts: 51
Location: Luxembourg

PostPosted: Wed Aug 13, 2003 11:21 am    Post subject: 2.6 rc1 - plugins Reply with quote

Hi,
I defined more than one plugin directory:
$smarty->plugins_dir[] = _BASE_DIR.'plugins1';
$smarty->plugins_dir[] = _BASE_DIR.'plugins2';
$smarty->plugins_dir[] = _BASE_DIR.'plugins3';

If there are more than one plugin in each directory smarty recognize only the first plugin in alphabetic order and ignore the rest of plugins in this directory!?! Error:

Fatal error: Smarty error: [in /test/index.tpl line 18]: [plugin] unknown tag - 'my_plugin' (core.load_plugins.php, line 118) in /lib/smarty/Smarty.class.php on line 1924

This isn't a feature, right?
Back to top
View user's profile Send private message Visit poster's website
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Wed Aug 13, 2003 11:43 am    Post subject: Reply with quote

Interesting that I am going to have to look into when I get a chance later. It is always a feature I am sure Smile
_________________
"Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane
Back to top
View user's profile Send private message Visit poster's website
atu
Smarty Regular


Joined: 18 Apr 2003
Posts: 51
Location: Luxembourg

PostPosted: Wed Aug 13, 2003 12:40 pm    Post subject: load plugin problem Reply with quote

Hi AZTEK,

This is a tricky problem. For this moment I cant load any plugin outside the regular smarty plugin directory. For example if I move the assign function to a second plugin dir smarty will not recognize it.

Strange because before I was still able to load one plugin. Now nothing works.

Thanks,
Armand
Back to top
View user's profile Send private message Visit poster's website
atu
Smarty Regular


Joined: 18 Apr 2003
Posts: 51
Location: Luxembourg

PostPosted: Wed Aug 13, 2003 12:48 pm    Post subject: Ahh! Reply with quote

Forget my postings for this moment. I think the problem comes from my application. Sorry to waste your time!!!

armand
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 -> Bugs 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