|
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 |
bigethan Smarty Rookie
Joined: 16 Jul 2003 Posts: 6
|
Posted: Fri Jan 08, 2010 9:41 pm Post subject: insert support? |
|
|
I'm seeing the same errors, and was wondering if there's been any change to Smarty 3's insert support:
Code: |
Fatal error: Uncaught exception 'Exception' with message 'Syntax Error in template "/path/to/project/templates/WWW/pages/frontdoor/index.tpl" on line 9 "" function "insert_ad" is not callable' in /path/to/project/lib/vendor/Smarty/sysplugins/smarty_internal_templatecompilerbase.php:396
Stack trace:
#0 /path/to/project/lib/vendor/Smarty/sysplugins/smarty_internal_compile_insert.php(53): Smarty_Internal_TemplateCompilerBase->trigger_template_error('function "inser...')
#1 [internal function]: Smarty_Internal_Compile_Insert->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), NULL, NULL, NULL)
#2 /path/to/project/lib/vendor/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(256): call_user_func(Array, Array, Object(Smarty_Internal_SmartyTemplateCompiler), NULL, NULL, NULL)
#3 /path/to/project/lib/vendor/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(121): Smarty_Internal_TemplateCompilerBase->callT in /path/to/project/lib/vendor/Smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 396
|
|
|
Back to top |
|
bigethan Smarty Rookie
Joined: 16 Jul 2003 Posts: 6
|
Posted: Mon Jan 11, 2010 8:03 pm Post subject: |
|
|
Is there a rough plan for when smarty will support {insert}?
I've started working on a new project, and need insert support. I'm tinkering with what's in SVN, but am having trouble tracking down the way to make sections of the cached template stay dynamic. And I don't want to go too far down the rabbit hole if the solution is in the works.
Thanks in advance for any feedback. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Jan 11, 2010 8:08 pm Post subject: |
|
|
use {nocache}{/nocache} tags around the dynamic content. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Jan 11, 2010 8:26 pm Post subject: |
|
|
Smarty3 did not support inserts defined by a insert plugin file.
The fix is in the SVN now. |
|
Back to top |
|
bigethan Smarty Rookie
Joined: 16 Jul 2003 Posts: 6
|
Posted: Mon Jan 11, 2010 10:04 pm Post subject: |
|
|
thank you so very much. |
|
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
|