Re: [SMARTY] Own $plugins_dir

From: Date: Sat, 12 Feb 2005 10:25:03 +0000
Subject: Re: [SMARTY] Own $plugins_dir
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12243@lists.php.net to get a copy of this message
<<<< This is the directories where Smarty will look for the plugins that it needs.
This is the array of directories where Smarty will look for plugins required.
---------------------- I'd love this to go in the manual with the example $smarter->plugins_dir = array('plugins',MY_SMARTY_CUSTOM_PLUGINS_DIR); The reason --- I updated smarty on two sites this week to smarty 2.6.7 Two sites "krashsed" as the new programmer I'm working with had created a few custom modifiers (which is cool); These were absent in the upgrade which means a few pages failed ;-( Even though we walked through the site (to recompile templates) we didnt touch those 2 pages and as plugins are "loaded when required" we did not see the error. The issue has been resolved with above code, however its is in my mind a "feature" that needs more higlighting. There could also be a comment and link to $smarty->register_function('date_now', 'print_current_date'); and also how to call php functions as in $sections|@count for example At this rate I might even get the job of maintaining some of the documentation from an end users point of view ;-)))) Smarty - me love it ;-) pete "mash" morgan Boots wrote:
--- messju mohr <messju@lammfellpuschen.de> wrote:
On Fri, Feb 11, 2005 at 11:52:39AM -0800, boots wrote:
--- pete M <pmorgan@ukds.net> wrote:
Would it be possible for this to be added to the documentation at http://smarty.php.net/manual/en/variable.plugins.dir.php
I tend to think it should be added as well but AFAIK, its not officially supported -- but it should be :)
it *is* officially supported. you seem to mix that up with multiple template_dirs, which aren't.
Yeah I do get them mixed-up. I blame it on fridays. And Tequilla. Cheers! xo boots
greetings messju
xo boots


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