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
> $smarty = new Smarty
> is in the main code?
> Can it be in another function?
>
> Try setting
> global $smarty;
> just before you create $smarty.
>
> Does that help?
Thanks, that's nice help :)

>
> >( register_globals = off )
> >Imho, globals don't working with "globals off", nut i can't find this in
> >manual.
> no, register_globals is only about the automatical production of variables
> from FORM, GET and other data input.
> But i fully agree the name is confusing.
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to