Advertisement
fernandezekiel

Untitled

Oct 18th, 2012
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. <?php
  2.  
  3. // This is the configuration for yiic console application.
  4. // Any writable CConsoleApplication properties can be configured here.
  5. return array(
  6. 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
  7. 'name'=>'My Console Application',
  8. // application components
  9. 'components'=>array(
  10. /*'db'=>array(
  11. 'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
  12. ),*/
  13. // uncomment the following to use a MySQL database
  14.  
  15. 'db'=>array(
  16. 'connectionString' => 'mysql:host=localhost;dbname=rits',
  17. 'emulatePrepare' => true,
  18. 'username' => 'root',
  19. 'password' => '',
  20. 'charset' => 'utf8',
  21. ),
  22. 'modules'=>array(
  23. #...
  24. 'user'=>array(
  25. # encrypting method (php hash function)
  26. 'hash' => 'md5',
  27.  
  28. # send activation email
  29. 'sendActivationMail' => true,
  30.  
  31. # allow access for non-activated users
  32. 'loginNotActiv' => false,
  33.  
  34. # activate user on registration (only sendActivationMail = false)
  35. 'activeAfterRegister' => false,
  36.  
  37. # automatically login from registration
  38. 'autoLogin' => true,
  39.  
  40. # registration path
  41. 'registrationUrl' => array('/user/registration'),
  42.  
  43. # recovery password path
  44. 'recoveryUrl' => array('/user/recovery'),
  45.  
  46. # login form path
  47. 'loginUrl' => array('/user/login'),
  48.  
  49. # page after login
  50. 'returnUrl' => array('/user/profile'),
  51.  
  52. # page after logout
  53. 'returnLogoutUrl' => array('/user/login'),
  54. ),
  55. #...
  56. ),
  57.  
  58.  
  59. ),
  60. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement