Re: [SMARTY] Problem with PHP functions

From: Date: Thu, 01 May 2003 20:04:31 +0000
Subject: Re: [SMARTY] Problem with PHP functions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9440@lists.php.net to get a copy of this message
Hi; Me too, I have that problem (with sympoll, a poll system). I cant use sympoll, cause I need to use functions and I cant retrieve the globals vars :-(. Pablo Fischer El jue, 01 de 05 de 2003 a las 22:56, Martin Voelkening escribió: > Hi, > > I have the following situation: > > index.tpl > ... > {include_php file="File with PHP functions e.g. getprice"} > ... > {include_php file="File that calls function getprice"} > ... > > The second include_php calls the function getprice (which is in the > 1st include_php). The call works fine but I haven't figured out how > to access the result variable $cart_price (declared as global in the > PHP function) in the 2nd include_php file. The normal way $cart_price > doesn't work... > > Who can help me? > > Thanks > > Martin > ---------------------------------------------------------------------- > 0700webhilfe.de > Martin Völkening - Geschäftsführer > http://www.0700webhilfe.de > mailto:martin@0700webhilfe.de > Max-Joseph-Str. 18 - 51429 Bergisch Gladbach > Fax 0700-WEBHILFE also 0700-93244533 > --------------------------------------------------------------------- -- Pablo Fischer <exilion@yifan.net>

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