Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Auth Extension

$
0
0
Hi, attached is the output of the error I have after installing the extension "auth" developed by Chris83. I specified the parameters for the configuration in the module definition array - I am not clear whether that is correct. I have a CompanyContact table instead of Users and it's primary key is company_contact_id. I've set this as the comments suggest, but it throws an error.

Property "CompanyContact.id" is not defined. 
(see attached file for full stack trace)

'modules'=>array(
'auth' => array(
          'strictMode' => true, // when enabled authorization items cannot be assigned children of the same type.
          'users' => array('admin'), // a list of users who has access to the module.
          'userClass' => 'CompanyContact', // the name of the user model class.
          'userIdColumn' => 'company_contact_id', // the name of the user id column.
          'userNameColumn' => 'username', // the name of the user name column.
          'appLayout' => 'application.views.layouts.main', // the layout used by the module.
          'viewDir' => null, // the path to view files to use with this module.
        ),
)


Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>