|
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 |
grmbl Smarty Rookie
Joined: 12 Jan 2010 Posts: 7
|
Posted: Tue Jan 12, 2010 11:54 am Post subject: Undefined smarty_modifier_default() in {html_radios} |
|
|
Hello,
In Beta5 it seemed to be working, in current SVN - broken:
Code like this:
Code: | {html_radios name='t' options=$SearchCategories selected={$SearchCategory|default:'a'}} |
or this:
Code: | {html_radios name='t' options=$SearchCategories selected=$SearchCategory|default:'a'} |
Produces:
Code: | PHP Fatal error: Call to undefined function smarty_modifier_default() in /u01/web/****/templates-cache/15fc17b8183f00a6519269be5c0acb27e7375c18.file.search.html.php on line 118 |
This is in fact a parent template, maybe relevant.
Cheers! |
|
Back to top |
|
grmbl Smarty Rookie
Joined: 12 Jan 2010 Posts: 7
|
Posted: Thu Jan 14, 2010 10:16 pm Post subject: |
|
|
Hello,
Just to let you know that SVN version still seems to be having the issue.
It might be a good idea to "inline" simple modifiers at compile-time - turn them into compiler functions. Could improve performance a bit I guess.
"default" modifier is a good example - it is just 1 line of code, which requires one more include and a function call for every invocation. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Jan 15, 2010 2:26 pm Post subject: |
|
|
I can't reproduce the problem. Have you tried to delete the cache files? It could be possible that an old cached file is used over and over again. |
|
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
|