Can not use auth because of an invalid path

244 views
Skip to first unread message

Octavio Limon

unread,
Feb 22, 2013, 8:52:11 PM2/22/13
to yii-...@googlegroups.com
Hi

I am having Alias "auth.components.AuthWebUser" is invalid. Make sure it points to an existing PHP file and the file is readable.

I have a folder named "auth" inside extensions

also this is my main.php

I have in modules

 'auth' => array(
            'strictMode' => true, // when enabled authorization items cannot be assigned children of the same type.
            'userClass' => 'Users',
            'userIdColumn' => 'id_user',
            'userNameColumn' => 'nombre',
          ),
       
and in components
'authManager' => array(
             'behaviors' => array(
                'auth' => array(
                      'class' => 'auth.components.AuthBehavior',
                      'admins'=>array('admin'), // users with full access
                ),
            ),
            'class'=>'auth.components.CachedDbAuthManager',
              'cachingDuration'=>3600,
        ),
        'user' => array(
              'class' => 'auth.components.AuthWebUser',
        ),

My files have permission...

I have been looking around a lot of blogs.. but I have not been successfull to use..

Could you please help me??

thanks

Christoffer Niska

unread,
Feb 23, 2013, 3:26:37 AM2/23/13
to Octavio Limon, yii-...@googlegroups.com
Try moving auth under modules instead of extensions.



--
You received this message because you are subscribed to the Google Groups "yii-auth" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yii-auth+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Best regards,
Christoffer Niska
Phone +358 500 980 565
Reply all
Reply to author
Forward
0 new messages