Problems with modifiers and objects
| From: | David Heinemeier Hansson | Date: | Tue, 11 Feb 2003 23:50:03 +0000 |
| Subject: | Problems with modifiers and objects | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-677@lists.php.net to get a copy of this message | ||
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