instead of: global $smarty; $smarty]->assign("message", $message);
try: $_GLOBAL['smarty']->assign("message", $message); Foong Michael Bevz <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php