Advertisement
Guest User

Yii-User I.

a guest
Dec 3rd, 2010
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. return array(
  2. #...
  3.        // autoloading model and component classes
  4.         'import'=>array(
  5.                 'application.models.*',
  6.                 'application.components.*',
  7.                 'application.modules.user.models.*',
  8.                 'application.modules.user.components.*',
  9.         ),
  10. #...
  11.        'modules'=>array(
  12.                 'user',
  13.         ),
  14. #...
  15.        // application components
  16.         'components'=>array(
  17. #...
  18.                'user'=>array(
  19.                         // enable cookie-based authentication
  20.                         'allowAutoLogin'=>true,
  21.                         'loginUrl' => array('/user/login'),
  22.                 ),
  23. #...
  24.        ),
  25. #...
  26. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement