Calling object methods
| From: | Garret Heaton | Date: | Thu, 16 Jun 2005 01:28:09 +0000 |
| Subject: | Calling object methods | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12689@lists.php.net to get a copy of this message | ||
Is there a way to call a method on an object returned from another method in Smarty?
I'm trying to do: {$obj->getSomeObject()->getSomeString()} but it can't understand it. Is there any way to get around this. I want to avoid calling getSomeObject() before loading the template so that things are cleaner.
Thanks,
Garret