You are here: Re: [SMARTY] Object reference issue « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] Object reference issue

Posted by boots on 10/20/05 21:12

--- 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/

 

Navigation:

[Reply to this 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

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