Re: [SMARTY] include_php file with paramters?

From: Date: Thu, 07 Nov 2002 07:06:32 +0000
Subject: Re: [SMARTY] include_php file with paramters?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6345@lists.php.net to get a copy of this message
Yeah i have the solution. The external script uses global variables :-(((. The smarty engine erases global variables. Now i code in the newsscript: $newsid = $_GET['newsid']; ... an so on. This makes possible to read the parameters from the url. I think my external script is bad code. Today the most php scripts should work only with $_GET and $_POST. thx at all Now i will read also the plugin manual of smarty :). bye ksi Kai-Uwe Beyer schrieb: > > Hi, > > i want to rebuild my page with smarty templates. > I have a big problem with including external scripts, which need > parameters. > They get their parameters from the own script. > > The function > {include_php file=$news} > > where > > $news = news.php?style_id=1&action=view$newsid=3; > > The smarty enginge gives a error: > > 'file:/home/web/smarty/docs/news.php?style_id=1&action=view$newsid=3' > is not readable > > How i can include external scripts with passing parameters thru this > scripts? > > Thx ksi > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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