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

From: Date: Fri, 22 Oct 2004 12:47:47 +0000
Subject: SV: SV: SV: SV: [SMARTY] bug in block_function handling?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11917@lists.php.net to get a copy of this message
> > 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??? No, I asked just to know if I had misunderstood something. Especially because I couldn't figure out how it could possibly work here. If it would have worked here using $smarty->_get_plugin_filepath than there were other things I had misunderstood. > > 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. OK, I have changed the block function into an insert function and that works fine for my purpose, also with cache on. I will have to do some more code tracking to find out what happens to block_functions in my setup if I'll need to use that. I didn't mean to call anything for "buggy", I rely on smarty for pretty much of what I do (software I mean ;). Thank you very much for your time. Regards Paolo

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