Home > Archive > PHP Smarty Templates > February 2005 > Re: [SMARTY] Own $plugins_dir
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [SMARTY] Own $plugins_dir
|
|
|
| --- messju mohr <messju@lammfellpuschen.de> wrote:
> On Fri, Feb 11, 2005 at 11:52:39AM -0800, boots wrote:
>
> 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
[color=darkred]
> greetings
> messju
>
| |
| pete M 2005-02-12, 8:58 am |
| <<<< This is the directories where Smarty will look for the plugins that
it needs.
[color=darkred]
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 w to smarty 2.6.7
Two sites "krashsed" as the new programmer I'm working with had created
a few custom modifiers (which is );
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:[color=darkred]
> --- messju mohr <messju@lammfellpuschen.de> wrote:
>
>
>
> Yeah I do get them mixed-up. I blame it on fridays. And Tequilla.
>
> Cheers!
> xo boots
>
>
| |
| Robert 2005-02-15, 4:05 pm |
| "pete M" <pmorgan@ukds.net> wrote in message
news:20050212102421.50065.qmail@lists.php.net...
> <<<< This is the directories where Smarty will look for the plugins that
> it needs.
>
> ----------------------
> I'd love this to go in the manual with the example
> $smarter->plugins_dir = array('plugins',MY_SMARTY_CUSTOM_PLUGINS
_DIR);
>
I do this as well... :-)
Robert
|
|
|
|
|