2014-05-06 12:16:20 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* common.php configuration file
|
|
|
|
*
|
|
|
|
* @author Antonio Ramirez <amigo.cobos@gmail.com>
|
|
|
|
* @link http://www.ramirezcobos.com/
|
|
|
|
* @link http://www.2amigos.us/
|
|
|
|
* @copyright 2013 2amigOS! Consultation Group LLC
|
|
|
|
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
|
|
|
*/
|
|
|
|
return array(
|
|
|
|
'basePath' => realPath(__DIR__ . '/..'),
|
|
|
|
'preload' => array('log'),
|
|
|
|
'aliases' => array(
|
|
|
|
'vendor' => 'application.vendor'
|
|
|
|
),
|
|
|
|
'import' => array(
|
|
|
|
'application.controllers.*',
|
|
|
|
'application.extensions.components.*',
|
|
|
|
'application.extensions.behaviors.*',
|
|
|
|
'application.helpers.*',
|
|
|
|
'application.models.*',
|
|
|
|
'vendor.2amigos.yiistrap.helpers.*',
|
|
|
|
'vendor.2amigos.yiiwheels.helpers.*',
|
|
|
|
),
|
|
|
|
'components' => array(
|
|
|
|
'errorHandler' => array(
|
|
|
|
'errorAction' => 'site/error',
|
|
|
|
),
|
|
|
|
'log' => array(
|
|
|
|
'class' => 'CLogRouter',
|
|
|
|
'routes' => array(
|
|
|
|
array(
|
|
|
|
'class' => 'CFileLogRoute',
|
|
|
|
'levels' => 'error, warning',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2014-05-12 10:11:20 +02:00
|
|
|
|
|
|
|
'db' => array(
|
|
|
|
'connectionString' => 'mysql:host=localhost;dbname=db451718',
|
|
|
|
'username' => 'root',
|
|
|
|
'password' => '',
|
|
|
|
'enableProfiling' => true,
|
|
|
|
'enableParamLogging' => true,
|
|
|
|
'charset' => 'utf8',
|
|
|
|
),
|
2014-05-06 12:16:20 +02:00
|
|
|
),
|
|
|
|
'params' => array(
|
|
|
|
// php configuration
|
|
|
|
'php.defaultCharset' => 'utf-8',
|
|
|
|
'php.timezone' => 'UTC',
|
2014-05-12 10:11:20 +02:00
|
|
|
|
|
|
|
'yii.handleErrors' => true,
|
|
|
|
'yii.debug' => true,
|
|
|
|
'yii.traceLevel' => 3,
|
2014-05-06 12:16:20 +02:00
|
|
|
)
|
|
|
|
);
|