Re: [SMARTY] object methods in templates?
| From: | K. Ono | Date: | Thu, 18 Jul 2002 14:57:54 +0000 |
| Subject: | Re: [SMARTY] object methods in templates? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5356@lists.php.net to get a copy of this message | ||
Thganks..
In fact, the prob was more complicated than I have posted as an example, but
found a workaround.
Thanks anyway for the help.
----- Original Message -----
From: "Peter Billen" <peter@clueless.be>
To: <smarty-general@lists.php.net>
Sent: Thursday, July 18, 2002 6:23 PM
Subject: RE: [SMARTY] object methods in templates?
> 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
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>