trouble with accessing object properties
| From: | dab | Date: | Sat, 08 Feb 2003 18:19:16 +0000 |
| Subject: | trouble with accessing object properties | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7598@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?
/dab
Properties of objects assigned from PHP can be
referenced by specifying the property name after the
'->' symbol.
Example 4-4. accessing object properties
name: {$person->name}<br>
email: {$person->email}<br>
OUTPUT:
name: Zaphod Beeblebrox<br>
email: zaphod@slartibartfast.com<br>
_____________________________________________________
Gratis e-mail resten av livet på www.yahoo.se/mail
Busenkelt!