AW: [SMARTY] trouble with accessing object properties
| From: | Rainer Collet | Date: | Sat, 08 Feb 2003 18:36:14 +0000 |
| Subject: | AW: [SMARTY] trouble with accessing object properties | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7599@lists.php.net to get a copy of this message | ||
>
> Hi
> I've been having trouble with accessing object
> properties from the smarty template.
> I have the same syntax as below from the documentation
> and when i do an echo from the php script it echoes
> the value. But the smarty template does nothing, and
> doesn't give any error messages either.
> Am i missing anything here?
> do i need to do a register_object or something?
either register the object or assign it.
$smarty->register_object ( "person", $zaphod );
$smarty->assign ( "person", $zaphod );
good luck,
rainer