You are here: Re: PHP & TPL files « PHP Programming Language « IT news, forums, messages
Re: PHP & TPL files

Posted by Juliette on 10/30/05 18:37

Maximus wrote:
> a simple questions.
>
> how can I echo a variable made on in a PHP file inside a tpl file.
> the TPL file is included inside the PHP file.
>
> any suggestions?
>

Are you using a template parser ?
If so, look in the documentation of the parser.

If not, include the template only after you have created your variables
and by having {$variablename} in the tpl file where you want the
variable to be placed it will automatically be replaced.

Even so, it all really depends on your set up, i.e. how the tpl file is
used and interpreted, so the suggested solution may not work.
If it doesn't give us some code so we can make educated suggestions.

 

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

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