|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
wonko Smarty n00b
Joined: 17 Dec 2003 Posts: 2 Location: Wellington, NZ
|
Posted: Sun Dec 28, 2003 5:57 am Post subject: plugins in included templates |
|
|
Hi there,
hope that question has not been answerd a 1000times before. I could not find an answer and would appretiate your opinion.
I am using smarty inside an object where I register the method MYMETHOD of this object as a function plugin. This works fine for "toplevel" templates. But when I include a template via {include file=...} the compiler does not know the registered method any more, tries to call smarty_function_MYMETHOD and fails.
Any suggestions welcome.
Cheers
Frank |
|
Back to top |
|
wonko Smarty n00b
Joined: 17 Dec 2003 Posts: 2 Location: Wellington, NZ
|
Posted: Sun Dec 28, 2003 6:05 am Post subject: Forget this post |
|
|
Sorry, sorry, sorry
it was just the usual mistake on my side.
I though I deleted the compiled scripts, which I did not.
The included template was still there without the newly registered function.
Cheers
Frank |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|