Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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

Report this thread to moderator Post Follow-up to this message
Old Post
Paolo Nesti Poggi
10-22-04 01:57 PM


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

Report this thread to moderator Post Follow-up to this message
Old Post
Messju Mohr
10-22-04 01:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:27 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.