Guest User

Untitled

a guest
Apr 20th, 2018
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. <?php
  2.  
  3. // uncomment the following to define a path alias
  4. // Yii::setPathOfAlias('local','path/to/local-folder');
  5.  
  6. // This is the main Web application configuration. Any writable
  7. // CWebApplication properties can be configured here.
  8. return array(
  9. 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
  10. 'name'=>'My Web Application',
  11. 'language'=>'pt',
  12. 'timeZone'=>'Europe/Lisbon',
  13. 'onBeginRequest'=>array('ConfigApp','config'),
  14.  
  15. // preloading 'log' component
  16. 'preload'=>array('log'),
  17.  
  18. // autoloading model and component classes
  19. 'import'=>array(
  20. 'application.models.*',
  21. 'application.components.*',
  22. 'application.extensions.*',
  23. ),
  24.  
  25. 'modules'=>array(
  26. // uncomment the following to enable the Gii tool
  27. 'gii'=>array(
  28. 'class'=>'system.gii.GiiModule',
  29. 'password'=>'gii',
  30. // If removed, Gii defaults to localhost only. Edit carefully to taste.
  31. 'ipFilters'=>array('127.0.0.1','::1'),
  32. ),
  33. ),
  34.  
  35. // application components
  36. 'components'=>array(
  37. 'user'=>array(
  38. // enable cookie-based authentication
  39. 'allowAutoLogin'=>true,
  40. ),
  41. // uncomment the following to enable URLs in path-format
  42. 'urlManager'=>array(
  43. 'urlFormat'=>'path',
  44. 'showScriptName'=>false,
  45. 'rules'=>array(
  46.  
  47. ),
  48. ),
  49. // uncomment the following to use a MySQL database
  50. 'db'=>array(
  51. 'connectionString' => 'mysql:host=localhost;dbname=mydb',
  52. 'emulatePrepare' => true,
  53. 'username' => 'root',
  54. 'password' => '',
  55. 'charset' => 'utf8',
  56. 'enableParamLogging' => YII_DEBUG
  57. ),
  58. 'errorHandler'=>array(
  59. // use 'site/error' action to display errors
  60. 'errorAction'=>'site/error',
  61. ),
  62. 'widgetFactory' => array(
  63. 'class' => 'CWidgetFactory',
  64. 'enableSkin' => true
  65. ),
  66. 'log'=>array(
  67. 'class'=>'CLogRouter',
  68. 'routes'=>array(
  69. array(
  70. 'class'=>'CFileLogRoute',
  71. 'levels'=>'error, warning',
  72. ),
  73. array(
  74. 'class'=>'CWebLogRoute',
  75. 'showInFireBug'=>true
  76. ),
  77. ),
  78. ),
  79. 'applanguage'=>array(
  80. 'class'=>'AppLanguage',
  81. )
  82. ),
  83.  
  84. // application-level parameters that can be accessed
  85. // using Yii::app()->params['paramName']
  86. 'params'=>array(
  87. // this is used in contact page
  88. 'adminEmail'=>'webmaster@example.com',
  89. ),
  90. );
Add Comment
Please, Sign In to add comment