RE: [SMARTY] Re: passing a parameter to {include_php }

From: Date: Wed, 13 Aug 2003 18:31:07 +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-10066@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#10066) next »