Global variables.
| From: | Argiris | Date: | Tue, 11 Mar 2003 00:17:34 +0000 |
| Subject: | Global variables. | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8542@lists.php.net to get a copy of this message | ||
Hi people.
I'm trying to use Manuel Lemos' Form Generator
class with Smarty and I'm getting a fatal error:
Fatal error: Call to a member function on a non-object
in F:\Development\TEI\smarty\templates_c\%%-81\
%%-810598535\header.tpl.html.php on line 13
As for that line it's:
$form->AddDataPart(ob_get_contents());
From what I understand the $form variable isn't global
and that causes a problem.
So my question is: how can I make variables accessible
from all templates?
Thank you in advance.
Argiris