Re: [SMARTY] Object reference issue
| From: | pbaker | Date: | Thu, 20 Oct 2005 18:04:43 +0000 |
| Subject: | Re: [SMARTY] Object reference issue | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13102@lists.php.net to get a copy of this message | ||
> Obviously I get this in the log:
> Smarty error: unable to read resource: "Object id #2->getRequestedPath().tpl"
U cannot to display a *.tpl file which name is "->getRequestedPath()"
> {include file="$page_info->getRequestedPath().tpl"}
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
Best regards,
pbaker