Re: SV: [SMARTY] bug in block_function handling?
| From: | boots | Date: | Sat, 23 Oct 2004 00:23:17 +0000 |
| Subject: | Re: SV: [SMARTY] bug in block_function handling? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11920@lists.php.net to get a copy of this message | ||
--- Paolo Nesti Poggi <pnp@italyflash.com> wrote:
> You won't believe it but that's it, that was my problem. I had to put
> it in a directory registered as plugin dir.
> And I had intentionally avoided that, how come?
> The fact is that the differences between autoloaded plugins and
> registered plugins were not so clear to me, as you may have seen ;).
> I knew I had to avoid making an autoloaded plugin because it is
> always cached (I started out with such a plugin) so, among the other
> things I tryed, I moved it outside of a plugin_dir ...
>
> instead I should have simply kept it there, _added a call to
> include_once('path/to/plugin')_
> to avoid: "[plugin] block 'nc' is not implemented" , and registered
> it.
It almost sounds like you weren't manually including the plugin during
a cache hit but rather were only registering it. Perhaps that is why
Smarty was trying to load it from one of its known plugin dirs. In
theory, you can prevent Smarty from ever searching the plugin dirs if
you manually load and register your them. Anyways, I'm glad to hear
that you got it solved.
Greetings,
xo boots
> Thank you for giving it one more try.
> Paolo