Advertisement
Guest User

Untitled

a guest
Mar 11th, 2013
708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.60 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. Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
  7.  
  8. // This is the main Web application configuration. Any writable
  9. // CWebApplication properties can be configured here.
  10. return array(
  11.     'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
  12.     'name'=>'Test Test',
  13.  
  14.     // preloading 'log' component
  15.     'preload'=>array('log'),
  16.  
  17.     // autoloading model and component classes
  18.     'import'=>array(
  19.         'application.models.*',
  20.         'application.components.*',
  21.     ),
  22.  
  23.  'theme'=>'bootstrap', // requires you to copy the theme under your themes directory
  24.     'modules'=>array(
  25.         'gii'=>array(
  26.             'generatorPaths'=>array(
  27.                 'bootstrap.gii',
  28.             ),
  29.             'class'=>'system.gii.GiiModule',
  30.                         'password'=>'root',
  31.                         // If removed, Gii defaults to localhost only. Edit carefully to taste.
  32.                         'ipFilters'=>array('127.0.0.1','::1'),
  33.         ),
  34.     ),
  35.  
  36.     // application components
  37.     'components'=>array(
  38.         'bootstrap'=>array(
  39.             'class'=>'bootstrap.components.Bootstrap',
  40.     ),
  41.         'user'=>array(
  42.             // enable cookie-based authentication
  43.             'allowAutoLogin'=>true,
  44.         ),
  45.         // uncomment the following to enable URLs in path-format
  46.        
  47.         'urlManager'=>array(
  48.             'urlFormat'=>'path',
  49.             'rules'=>array(
  50.                 '<controller:\w+>/<id:\d+>'=>'<controller>/view',
  51.                 '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
  52.                 '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
  53.                 '' => '/property/index',
  54.                 'login' => '/site/login',
  55.             ),
  56.         ),
  57.        
  58.         /*'db'=>array(
  59.             'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
  60.         ),*/
  61.         // uncomment the following to use a MySQL database
  62.        
  63.         'db'=>array(
  64.             'connectionString' => 'mysql:host=localhost;dbname=test_test',
  65.             'emulatePrepare' => true,
  66.             'username' => 'root',
  67.             'password' => 'root',
  68.             'charset' => 'utf8',
  69.         ),
  70.        
  71.         'errorHandler'=>array(
  72.             // use 'site/error' action to display errors
  73.             'errorAction'=>'site/error',
  74.         ),
  75.         'log'=>array(
  76.             'class'=>'CLogRouter',
  77.             'routes'=>array(
  78.                 array(
  79.                     'class'=>'CFileLogRoute',
  80.                     'levels'=>'error, warning',
  81.                 ),
  82.                 // uncomment the following to show log messages on web pages
  83.                 /*
  84.                 array(
  85.                     'class'=>'CWebLogRoute',
  86.                 ),
  87.                 */
  88.             ),
  89.         ),
  90.     ),
  91.  
  92.     // application-level parameters that can be accessed
  93.     // using Yii::app()->params['paramName']
  94.     'params'=>array(
  95.         // this is used in contact page
  96.         'adminEmail'=>'[email protected]',
  97.     ),
  98. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement