Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Undefined smarty_modifier_default() in {html_radios}

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
grmbl
Smarty Rookie


Joined: 12 Jan 2010
Posts: 7

PostPosted: Tue Jan 12, 2010 11:54 am    Post subject: Undefined smarty_modifier_default() in {html_radios} Reply with quote

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
View user's profile Send private message
grmbl
Smarty Rookie


Joined: 12 Jan 2010
Posts: 7

PostPosted: Thu Jan 14, 2010 10:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri Jan 15, 2010 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP