Make sure your loading the Auth component in the AppController.php

public $components = array(
        'Session',
        'Auth' => array(
            'loginRedirect' => array(
                'controller' => 'posts',
                'action' => 'index'
            ),
            'logoutRedirect' => array(
                'controller' => 'pages',
                'action' => 'display',
                'home'
            )
        )
    );



I have this in the top of my AppModel

App::uses('AppModel', 'Model');
App::uses('AuthComponent', 'Controller/Component');
App::uses('SimplePasswordHasher', 'Controller/Component/Auth');

On Friday, 17 January 2014 05:17:40 UTC+11, jose cavazos wrote:
>
> Hi all,
>  
> I am receiving this message
>
> * Error:Class 'SimplePasswordHasher' not found *I am following the 
> tutorial 
> http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.htmlfor
>  Simple Authentication and Authorization.  I found this thread 
> https://groups.google.com/forum/#!topic/cake-php/wL6f3MG_M8c but it 
> doesn't have an answer for me . Any suggestions?
>
> I have this at top of User.php is models 
> App::uses('SimplePasswordHasher','Controlller/Component/Auth');
>
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to