Advertisement
Guest User

Yii CException

a guest
May 21st, 2014
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.10 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'=>'SunLog',
  11.  
  12.     'aliases' => array(
  13.         'bootstrap' => 'ext.bootstrap',
  14.     ),
  15.  
  16.     // preloading 'log' component
  17.     'preload'=>array('log'),
  18.  
  19.     // autoloading model and component classes
  20.     'import'=>array(
  21.         'application.models.*',
  22.         'application.components.*',
  23.         'bootstrap.behaviors.*',
  24.         'bootstrap.helpers.*',
  25.         'bootstrap.widgets.*',            
  26.     ),
  27.  
  28.     'modules'=>array(
  29.         // uncomment the following to enable the Gii tool
  30.        
  31.         'gii'=>array(
  32.             'generatorPaths' => array('bootstrap.gii'),
  33.             'class'=>'system.gii.GiiModule',
  34.             'password'=>'Enter Your Password Here',
  35.             // If removed, Gii defaults to localhost only. Edit carefully to taste.
  36.             'ipFilters'=>array('127.0.0.1','::1'),
  37.         ),
  38.        
  39.     ),
  40.  
  41.     // application components
  42.     'components'=>array(
  43.                 'request'=>array(
  44.                     'enableCsrfValidation'=>true,                    
  45.                 ),
  46.         'user'=>array(
  47.                         'class' => 'WebUser',          
  48.             'allowAutoLogin'=>false,
  49.         ),
  50.  
  51.         'bootstrap' => array(
  52.             'class' => 'bootstrap.components.BsApi'
  53.         ),
  54.  
  55.         // uncomment the following to enable URLs in path-format
  56.         /*
  57.         'urlManager'=>array(
  58.             'urlFormat'=>'path',
  59.             'rules'=>array(
  60.                 '<controller:\w+>/<id:\d+>'=>'<controller>/view',
  61.                 '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
  62.                 '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
  63.             ),
  64.         ),
  65.         */
  66.  
  67.         /*
  68.         'db'=>array(
  69.             'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
  70.         ),
  71.         */
  72.  
  73.         // uncomment the following to use a MySQL database
  74.        
  75.         'db'=>array(
  76.             'connectionString' => 'mysql:host=localhost;dbname=dbname',
  77.             'emulatePrepare' => true,
  78.             'username' => 'dbuser',
  79.             'password' => 'dbpassword',
  80.             'charset' => 'utf8',
  81.         ),
  82.        
  83.                 'authManager'=>array(
  84.                         'class'=>'CDbAuthManager',
  85.                         'defaultRoles'=>array('client', 'administrator', 'reseller'),
  86.                         'connectionID'=>'db',
  87.                 ),
  88.            
  89.         'errorHandler'=>array(
  90.             // use 'site/error' action to display errors
  91.             'errorAction'=>'site/error',
  92.         ),
  93.         'log'=>array(
  94.             'class'=>'CLogRouter',
  95.             'routes'=>array(
  96.                 array(
  97.                     'class'=>'CFileLogRoute',
  98.                     'levels'=>'error, warning',
  99.                 ),
  100.                 // uncomment the following to show log messages on web pages
  101.                 /*
  102.                 array(
  103.                     'class'=>'CWebLogRoute',
  104.                 ),
  105.                 */
  106.             ),
  107.         ),
  108.     ),
  109.  
  110.     // application-level parameters that can be accessed
  111.     // using Yii::app()->params['paramName']
  112.     'params'=>array(
  113.         // this is used in contact page
  114.         'adminEmail'=>'info@sunlog.it',
  115.                 'recaptcha' => array(
  116.                     'publicKey' => '',
  117.                     'privateKey' => '',
  118.                 ),
  119.                 'googlemapskey'=>'',
  120.     ),
  121. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement