[SMARTY] Object access

From: Date: Thu, 06 Mar 2003 04:43:32 +0000
Subject: [SMARTY] Object access
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8426@lists.php.net to get a copy of this message
How does one assign to output of an objects method? The manual states that {$obj->method p1="" assign="output"} should work but it doesn't. Also tried {$obj->method() assign="output"} but this simple outputs the array (ie "Array" is this getting closer?) Specific example: $obj->method outputs an associative array. index.tpl : {$obj->method p1="" assign="arr"} {foreach item="item" from=$arr} {$item}<br/> {/foreach} How can I achieve this functionality? Thanks, Tom

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