Re: [SMARTY] Object reference issue
| From: | boots | Date: | Thu, 20 Oct 2005 18:12:21 +0000 |
| Subject: | Re: [SMARTY] Object reference issue | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13103@lists.php.net to get a copy of this message | ||
--- pbaker <baker_net@tlen.pl> wrote:
> if the method returns the name U should assign the name to variable,
> something like this:
>
> {assign var="name" value=$page_info->getRequestedPath()}
>
> and then {include file="$name.tpl"} <--- not tested :P
uhh, not exactly. This would work, but the real issue is the use of
double quotes when they are not required.
See:
http://smarty.php.net/manual/en/language.syntax.quotes.php
xo boots
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/