how to parse variables to php
| From: | Ulrik Nielsen | Date: | Wed, 02 Jul 2003 11:42:17 +0000 |
| Subject: | how to parse variables to php | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9806@lists.php.net to get a copy of this message | ||
Hi There,
I have to send a variable from a smarty template to another included php file.
This (see below) was my approch, but it does not work.
---- file1.tpl ----
<html code>
{include file="file2.tpl" variable="value"}
<more code>
---- file2.tpl ----
{include_php file="test.php"}
---- test.php ----
echo $variable;
------------------
now I have tryed to globalize the $variable but it does not change anything...
Can this be done or do you have a better approch ??
Thanks !
--
>> ulrik - ulrik(@)lazy.dk
excuse of the day : The recent proliferation of Nuclear Testing
from bofh : http://www.cs.wisc.edu/~ballard/bofh/