1
0
www.mikescher.com/www/protected/config/main.php

83 lines
1.9 KiB
PHP
Raw Normal View History

2014-05-13 12:40:42 +02:00
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
2014-05-13 13:16:39 +02:00
require_once('protected/lib/ArrayX.php');
use Yiinitializr\Helpers\ArrayX;
return ArrayX::merge(array(
2014-05-13 12:40:42 +02:00
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
2014-05-13 14:06:18 +02:00
'name'=>'Mikescher.de',
2014-05-13 12:40:42 +02:00
// preloading 'log' component
'preload'=>array('log'),
2014-05-13 14:06:18 +02:00
'aliases' => array(
'bootstrap' => realpath(__DIR__ . '/../extensions/bootstrap'), // change this if necessary
),
2014-05-13 12:40:42 +02:00
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
2014-05-13 14:06:18 +02:00
'bootstrap.components.*',
'bootstrap.behaviors.*',
'bootstrap.helpers.*',
2014-05-13 12:40:42 +02:00
),
'modules'=>array(
2014-05-13 14:06:18 +02:00
//
2014-05-13 12:40:42 +02:00
),
// application components
'components'=>array(
2014-05-13 14:06:18 +02:00
'bootstrap' => array(
'class' => 'bootstrap.components.TbApi',
),
2014-05-13 12:40:42 +02:00
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
2014-05-13 14:06:18 +02:00
2014-05-13 12:40:42 +02:00
// uncomment the following to enable URLs in path-format
/*
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
*/
2014-05-13 13:16:39 +02:00
2014-05-13 12:40:42 +02:00
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
*/
),
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'webmaster@example.com',
),
2014-05-13 13:16:39 +02:00
), require_once('env/' . YII_CUSTOM_ENV . '.php'));