globals off in function

From: Date: Tue, 14 Jan 2003 10:46:40 +0000
Subject: globals off in function
Groups: php.general 
Request: Send a blank email to php-general+get-131535@lists.php.net to get a copy of this message
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 member function on a non-object in /usr/home/elastic.org/work/svyatoshin/system/common_func.php on line 22 " Imho, globals don't working with "globals off", nut i can't find this in manual. Who can help me?

« previous php.general (#131535) next »