Problem with PHP functions
| From: | Martin Voelkening | Date: | Thu, 01 May 2003 22:56:10 +0000 |
| Subject: | Problem with PHP functions | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9439@lists.php.net to get a copy of this message | ||
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
---------------------------------------------------------------------