For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > October 2004 > SV: SV: SV: [SMARTY] bug in block_function handling?









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 SV: SV: SV: [SMARTY] bug in block_function handling?
Paolo Nesti Poggi

2004-10-22, 8:57 am

> On Thu, Oct 21, 2004 at 02:20:35PM +0200, Paolo Nesti Poggi wrote:
[color=darkred]
>
> 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
Messju Mohr

2004-10-22, 8:57 am

On 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 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:
>
> I call register_block regardless of cache settings


then i don't know. what you describe as buggy works fine for me.

> paolo


messju
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com