Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorException #15

Closed
Bulmer opened this issue Feb 18, 2013 · 6 comments
Closed

ErrorException #15

Bulmer opened this issue Feb 18, 2013 · 6 comments

Comments

@Bulmer
Copy link

Bulmer commented Feb 18, 2013

I get this error:
"ErrorException: Runtime Notice: Non-static method Zizaco\Confide\Confide::logAttempt() should not be called statically",
when running this in my Controller (just testing it at the moment).

$input = array('email'=>'me@mysite.com', 'password'=>'1234');
if(Confide::logAttempt($input)){
echo "Enter user!";
}
Is there something i've missed, in setting-up?
Thanks.

@Zizaco
Copy link
Owner

Zizaco commented Feb 18, 2013

At the end of your config/app.php, have you written 'Confide' => 'Zizaco\Confide\ConfideFacade' correctly?

'aliases' => array(

    'App'        => 'Illuminate\Support\Facades\App',
    'Artisan'    => 'Illuminate\Support\Facades\Artisan',
    ...
    'Confide'    => 'Zizaco\Confide\ConfideFacade',

),

Haven't you mistyped Confide instead of ConfideFacade?


edit: The logAttempt method is not static, but the ConfideFacade simulates that, So in order to call the method statically, without registering it in $aliases array, you should do Zizaco\Confide\ConfideFacade::logAttempt($input)

@Bulmer
Copy link
Author

Bulmer commented Feb 19, 2013

Hello Zizaco.
Yes I have "'Confide' => 'Zizaco\Confide\ConfideFacade'," in class aliases. Any other idea what it may be as i'd prefer to call statically.'Cheers.

@Zizaco
Copy link
Owner

Zizaco commented Feb 19, 2013

You should be able to call it statically. There is something else wrong.
I'm not able reproduce the error here, can you please post your code in github? so I can check exactly what is going on?

@Bulmer
Copy link
Author

Bulmer commented Feb 19, 2013

I will get back to you in about 7 hours, when I get back to my Dev laptop. Cheers.

@Bulmer
Copy link
Author

Bulmer commented Feb 19, 2013

Ok. Its not a problem with your code it seems my IDE (eclipse) automatically added "use Zizaco\Confide\Confide;" to the top of the page.
By the way , thanks for this 'unbloated' Auth package. Its just what I was looking for. Cheers.

@Bulmer Bulmer closed this as completed Feb 19, 2013
@Zizaco
Copy link
Owner

Zizaco commented Feb 19, 2013

Your welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants