Code Comments
Programming Forum and web based access to our favorite programming groups.> On Thu, Oct 21, 2004 at 02:20:35PM +0200, Paolo Nesti Poggi wrote: > > FWIW you should follow the example from > http://smarty.php.net/manual/en/plugins.writing.php : > > require_once $smarty->_get_plugin_filepath('block', 'nc'); > That page of the manual on this point says ("*" are mine): <quote> If a plugin depends on some functionality provided by *another plugin* (as is the case with some plugins bundled with Smarty), then the proper way to load the needed plugin is this ... </quote> It is a different case, I'm not including another plugin to use its functionality inside mine. 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? on your question from the other message: > do you register the plugin on each request? also on requests where > is_cached() is true? > I call register_block regardless of cache settings paolo
Post Follow-up to this messageOn Fri, Oct 22, 2004 at 11:32:47AM +0200, Paolo Nesti Poggi wrote:
>
>
> That page of the manual on this point says ("*" are mine):
> <quote>
> If a plugin depends on some functionality provided by *another plugin* (as
> is the case with some plugins bundled with Smarty), then the proper way to
> load the needed plugin is this ...
> </quote>
>
> It is a different case, I'm not including another plugin to use its
> functionality inside mine.
you only use things for the purpose they are made for???
> Besides, how can smarty know the path of the plugin if it doesn't exists a
t
> 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 fin
d
> it?
>
> on your question from the other message:
>
> I call register_block regardless of cache settings
then i don't know. what you describe as buggy works fine for me.
> paolo
messju
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.