Re: [SMARTY] Multiple plugin sirectories

From: Date: Tue, 27 Jan 2004 22:21:40 +0000
Subject: Re: [SMARTY] Multiple plugin sirectories
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10881@lists.php.net to get a copy of this message
On Tue, Jan 27, 2004 at 05:11:15PM -0500, Andrew Nagy wrote: > Sorry if this topic has been beaten to death, but the huge lack of a search > feature for the php news server causes me to post this > > Can someone hint me as how to define multiple plugin directories? I am > running smarty 2.6 > I have some custom plugins for my app and i want them seperate from the main > smarty plugins directory. > I set it by doing the following, but am unable to get anything to work: > > $smarty->plugins_dir = '/home/html/myapp/smarty/plugins'; $smarty->plugins_dir = array('/home/html/myapp/smarty/plugins', SMARTY_DIR . 'plugins'); so Smarty looks first in your app's dir and then in it's distribution's dir. HTH messju > > I get this: > Fatal error: config_load(): Failed opening required '' > (include_path='/home/html/myapp:/usr/local/lib/php:.') in > /usr/local/lib/php/Smarty/Smarty.class.php on line 1356 > > > Thanks for the help > Andrew > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#10881) next »