RE: [SMARTY] object methods in templates?
| From: | Peter Billen | Date: | Thu, 18 Jul 2002 09:23:13 +0000 |
| Subject: | RE: [SMARTY] object methods in templates? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5355@lists.php.net to get a copy of this message | ||
php:
$t->assign("name",$person->getName());
template:
name: {name}<br>
Not? :)
Peter
-----Original Message-----
From: K. Ono [mailto:webmaster@myweb.ne.jp]
Sent: donderdag 18 juli 2002 11:20
To: smarty-general@lists.php.net
Subject: [SMARTY] object methods in templates?
Does Smarty allow you to access object methods?
For example
name: {$person->getName()}<br>
email: {$person->getEmail()}<br>
thanks in advance
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php