RE: [SMARTY] Re: passing a parameter to {include_php }
| From: | Ryan Allen | Date: | Wed, 13 Aug 2003 19:16:20 +0000 |
| Subject: | RE: [SMARTY] Re: passing a parameter to {include_php } | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10067@lists.php.net to get a copy of this message | ||
I take this back!! It does work in smarty 2.4.2! I had a bug in my
code.
Thanks Messju! That makes life much easier for me.
-- Ryan
-----Original Message-----
From: Ryan Allen
Sent: Wednesday, August 13, 2003 11:31 AM
To: messju mohr; Greg Beaver
Cc: smarty-general@lists.php.net
Subject: RE: [SMARTY] Re: passing a parameter to {include_php }
Apparently, this does not work in 2.4.2 either. To access the variable,
will it be called $viewStat or $_GET['viewStats']? In my version on
Smarty, neither seem to work.
-- Ryan
-----Original Message-----
From: messju mohr [mailto:messju@lammfellpuschen.de]
Sent: Wednesday, August 13, 2003 12:29 AM
{include_php file="myfile.php" viewStats=$viewStats}
is the way to do it. unfortunately it seems that ryan found a bug in
2.6.0-RC1 where the above doesn't work (but should). it works great
with 2.5.0, though.
greetings
messju
>
> 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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php