|
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 |
sekmun Smarty n00b
Joined: 13 Nov 2009 Posts: 3
|
Posted: Fri Nov 13, 2009 10:56 pm Post subject: object methods and default modifier using "|" |
|
|
Hi, I've got this kind of syntax in smarty2
php:
Code: | $Smarty->register_object('Obj', $Obj); |
smarty:
Code: | {Obj->method|default:"stuff"}
or
{Obj->method|escape:"html"} |
it seems this kind of chained modifier with a method's (function) output is broken?
I get this error:
Code: | Exception: Syntax Error in template "smarty2.tpl" on line n "
{Obj->method|escape:'html'}
" - Unexpected "|", expected one of: "}" in smarty3/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 263 |
|
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat Nov 14, 2009 10:39 am Post subject: |
|
|
Thanks for bringing this up.
The fix is in the SVN now. |
|
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
|