Re: [SMARTY] Object reference issue

pbaker <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>

> 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

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.