Re: [PHP] globals off in function

2003-01-14 Thread Michael Bevz
Chris Hayes <[EMAIL PROTECTED]> ïèøåò â ñîîáùåíèè:[EMAIL PROTECTED] > > >in function i call to $smarty variable > >" > >function showLoginForm(){ > > > >global $db, $smarty; // $smarty = new Smarty in main code > >Fatal error: Call to a member function on a non-object in > > Are you sure >

[PHP] globals off in function

2003-01-14 Thread Michael Bevz
Hi, all!!! I've such trouble: ( register_globals = off ) in function i call to $smarty variable " function showLoginForm(){ global $db, $smarty; // $smarty = new Smarty in main code $smarty->assign("message", $message); // " and i receive this error message " Fatal error: Call to a