Re: [SMARTY] bug in block_function handling?
| From: | boots | Date: | Fri, 22 Oct 2004 16:02:44 +0000 |
| Subject: | Re: [SMARTY] bug in block_function handling? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11918@lists.php.net to get a copy of this message | ||
--- Paolo Nesti Poggi <pnp@italyflash.com> wrote:
> > > Besides, how can smarty know the path of the plugin if it
> > > doesn't exists at all in smarty yet. I'm registering it the first
> > > time I include it.
> > > Or do my plugin have to reside in a particular directory for
> > > smarty to find it?
Sure, unless you want to manually load and register them yourself. It
is not uncommon to keep custom plugins in their own directory. You can
tell Smarty about that directory by using an array of directories for
the plugins property. eg: $smarty->plugins_dir =
array('/path/to/custom/plugins', '/path/to/smarty/plugins') and Smarty
will then search those paths in order whenever it is asked to load a
plugin. Actually, I just looked at your original message and you seem
to be aware of that already.
Also from your first message, you appear to be correct about the typo
in example 13-10. Thanks for pointing that out.
Otherwise, I too am at a loss as to why you are getting spurious
results.
xo boots