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: [SMARTY] bug in block_function handling?
> -----Oprindelig meddelelse-----
> Fra: boots [mailto:jayboots@yahoo.com]
> Sendt: 22. oktober 2004 18:03
> --- Paolo Nesti Poggi <pnp@italyflash.com> wrote: 
>
> Sure, unless you want to manually load and register them yourself. It
> is not uncommon to keep custom plugins in their own directory. You can
> tell Smarty about that directory by using an array of directories for
> the plugins property. eg: $smarty->plugins_dir =
> array('/path/to/custom/plugins', '/path/to/smarty/plugins') and Smarty
> will then search those paths in order whenever it is asked to load a
> plugin. Actually, I just looked at your original message and you seem
> to be aware of that already.

You won't believe it but that's it, that was my problem. I had to put it in
a directory registered as plugin dir.
And I had intentionally avoided that, how come?
The fact is that the differences between autoloaded plugins and registered
plugins were not so clear to me, as you may have seen ;).
I knew I had to avoid making an autoloaded plugin because it is always
cached (I started out with such a plugin) so, among the other things I
tryed, I moved it outside of a plugin_dir ...

instead I should have simply kept it there, _added a call to
include_once('path/to/plugin')_
to avoid:  "[plugin] block 'nc' is not implemented" , and registered it.

Thank you for giving it one more try.
Paolo

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


Re: SV: [SMARTY] bug in block_function handling?
--- Paolo Nesti Poggi <pnp@italyflash.com> wrote:
> You won't believe it but that's it, that was my problem. I had to put
> it in a directory registered as plugin dir.
> And I had intentionally avoided that, how come?
> The fact is that the differences between autoloaded plugins and
> registered plugins were not so clear to me, as you may have seen ;).
> I knew I had to avoid making an autoloaded plugin because it is
> always cached (I started out with such a plugin) so, among the other
> things I tryed, I moved it outside of a plugin_dir ...
>
> instead I should have simply kept it there, _added a call to
> include_once('path/to/plugin')_
> to avoid:  "[plugin] block 'nc' is not implemented" , and registered
> it.

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.

Greetings,
xo boots

> Thank you for giving it one more try.
> Paolo

Report this thread to moderator Post Follow-up to this message
Old Post
Boots
10-23-04 01:57 AM


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 03:57 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.