Calling object methods from smarty variables

From: Date: Wed, 27 Feb 2002 16:36:04 +0000
Subject: Calling object methods from smarty variables
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2866@lists.php.net to get a copy of this message
It doesn't seem to be possible to call {$person->getFullName()}. Is there a work-around to this? The piece below works just fine (the method returns an array of error messages), so I found it strange that the simpler version didn't work. {foreach from=$errors->getAllErrorMessages() item=errorMessage} <li>{$errorMessage}</li> {/foreach} I read through the archives and saw a reference [1] to some work-around in the CVS repository, but I haven't been able to find this repository. Does anyone has the work-around or can tell me how to access the repository? [1] http://marc.theaimsgroup.com/?l=smarty&m=101171218430078&w=2 -- David Heinemeier Hansson <david@loudthinking.com> http://www.LoudThinking.com/ -- Broadcasting Brain

« previous php.smarty.general (#2866) next »