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: [SMARTY] bug in block_function handling?
> -----Oprindelig meddelelse-----
> Fra: boots [mailto:jayboots@yahoo.com]
> Sendt: 23. oktober 2004 02:23
> Til: Paolo Nesti Poggi

 
>
> It almost sounds like you weren't manually including the plugin during
> a cache hit but rather were only registering it. Perhaps that is why
> Smarty was trying to load it from one of its known plugin dirs. In
> theory, you can prevent Smarty from ever searching the plugin dirs if
> you manually load and register your them. Anyways, I'm glad to hear
> that you got it solved.

Well, then I stay with one more open question: when you say "manually
loading" what do you mean?
I know now that I can /must manually "include" a plugin, as any other file,
and then manually register it instead of letting the plugin dir and the
naming convention do both things for me, but I still need the plugin in the
plugin_dir to be "loaded", otherwise I will get the "could not load plugin
file" error. But actually I don't know how I can manually "load" the plugin,
you don't seem to use the words "registering" and "loading" as synonyms, so
what is "manually loading"?

paolo

Report this thread to moderator Post Follow-up to this message
Old Post
Paolo Nesti Poggi
10-23-04 08:56 PM


Re: SV: SV: [SMARTY] bug in block_function handling?
On Sat, Oct 23, 2004 at 07:25:40PM +0200, Paolo Nesti Poggi wrote: 
>
> 
>
> Well, then I stay with one more open question: when you say "manually
> loading" what do you mean?
> I know now that I can /must manually "include" a plugin, as any other file
,
> and then manually register it instead of letting the plugin dir and the
> naming convention do both things for me,

yes, that's called "register the plugin manually".

> but I still need the plugin in the plugin_dir to be "loaded",
> otherwise I will get the "could not load plugin file" error.

no! smarty won't try to auto-load your plugin if you already
registered it manually.

it will only throw a '"could not load plugin file" error' if the
plugin wasn't registered *and* is not not found in plugins_dir. but
manually registered plugins *always* have precedence over
auto-loading.

> But actually I don't know how I can manually "load" the plugin,
> you don't seem to use the words "registering" and "loading" as synonyms, s
o
> what is "manually loading"?

what he (boots) meant here with "manually loading" is: "making sure
that the implementation of the plugin (the php-funciton) is defined".

> paolo

Report this thread to moderator Post Follow-up to this message
Old Post
Messju Mohr
10-23-04 08:56 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:25 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.