Re: [SMARTY-DEV] Problems with modifiers and objects

From: Date: Wed, 12 Feb 2003 00:44:40 +0000
Subject: Re: [SMARTY-DEV] Problems with modifiers and objects
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-678@lists.php.net to get a copy of this message
Objects as modifier parameters are not currently supported. David Heinemeier Hansson wrote:
This construct: {$form->lastModified->toString()|default:$form->created->toString()} Produces this error: Fatal error: Smarty: [in form/showForm.html line 22]: syntax error: unrecognized tag: $form->lastModified->toString()|default:$form->created->toString() (Smarty_Compiler.class.php, line 381) in /Smarty-2.4.2/Smarty_Compiler.class.php on line 1857 Where's this is fine: {$form->lastModified->toString()|default:"works!"} Clues? -- David


« previous php.smarty.dev (#678) next »