Re: [SMARTY] Calling object methods
| From: | Monte Ohrt | Date: | Thu, 16 Jun 2005 16:35:20 +0000 |
| Subject: | Re: [SMARTY] Calling object methods | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12693@lists.php.net to get a copy of this message | ||
Its not a bug report, its a feature request... there is no official
support of Smarty in PHP5 yet, although it does work 99.9%.
Joe Stump wrote:
If that's the case I'd file a bug report. If you're running Smarty under PHP5 this should work fine I would think - at least I'd expect it to. --Joe On Jun 16, 2005, at 9:19 AM, messju mohr wrote:On Thu, Jun 16, 2005 at 09:15:39AM -0700, Joe Stump wrote:What you're doing only works under PHP5. You can't do $foo->bar()-yes, this works in php5, but not in a smarty template.display() in PHP4. That being said, if you ARE running PHP5 thisshould work just fine and, if it's not, then you've most likely found a bug.--Joe On Jun 15, 2005, at 6:28 PM, Garret Heaton wrote:-- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpIs 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-- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php