Posted by pbaker on 10/20/05 21:04
> 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
Navigation:
[Reply to this message]
|