Re: passing a parameter to {include_php }
| From: | Greg Beaver | Date: | Wed, 13 Aug 2003 02:46:09 +0000 |
| Subject: | Re: passing a parameter to {include_php } | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10042@lists.php.net to get a copy of this message | ||
Hi Ryan,
Try a hack, use
{php}
$_GET['viewStats'] = $this->get_template_vars('viewStats');
{/php}
{include_php file="myfile.php"}
:)
Greg
Ryan Allen wrote:
I've got some code that I want to do something like a post to a .php file and include it in the middle of a script: {include_php file="myfile.php"} but what I really need it do is something like: {include_php file="myfile.php?viewStats=$viewStats"} It's in the middle of my template. Any suggestions?? Thanks! -- Ryan