Installing my User Management Module on Yii

Last updated:
  • copy the users directory to "protected/modules/"

  • don't forget to set liberal permissions to the module directory to avoid problems:

    sudo chmod 777 users/ -R
    
  • add this in the main config:

    'import' => array(
          //other imports
          'application.modules.users.*',
          'application.modules.users.models.*',
    )
    
  • add this in the main config:

    'modules' => array(
        //other modules..
        'users'=>array(
             //settings
        )
    )
    
  • add this in user component:

    'user' => array(
        //other configs....
        'loginUrl' => array('/users/login'),
    
  • add this in the console config:

    'modules' => array(
        'users'=>array(
            'hashing_algorithm'=>'sha512'   
        )
    )
    

Dialogue & Discussion