Re: PHP & TPL files
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: PHP & TPL files

From: Juliette <jrf_no_spam@jokeaday.net>
Date: Sun Oct 30 2005 - 17:37:25 CET

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.
Received on Mon Nov 21 02:53:04 2005