Re: SV: SV: SV: [SMARTY] bug in block_function handling?

From: Date: Fri, 22 Oct 2004 10:04:03 +0000
Subject: Re: SV: SV: SV: [SMARTY] bug in block_function handling?
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11915@lists.php.net to get a copy of this message
On Fri, Oct 22, 2004 at 11:32:47AM +0200, Paolo Nesti Poggi wrote: > > On Thu, Oct 21, 2004 at 02:20:35PM +0200, Paolo Nesti Poggi wrote: > > > > -----Oprindelig meddelelse----- > > > > Fra: messju mohr [mailto:messju@lammfellpuschen.de] > > > > > > > below is the test: > > > > > > In case 3 (registration needed) > > > In the application I have: > > > include_once('Smarty/Smarty_nocache_cmpt/block.nc.php'); > > > > 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. 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: > > do you register the plugin on each request? also on requests where > > is_cached() is true? > > > > I call register_block regardless of cache settings then i don't know. what you describe as buggy works fine for me. > paolo messju

« previous php.smarty.general (#11915) next »