Reply to Re: [SMARTY] Object reference issue

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация