<?php
//echo dirname(__FILE__).'/main.php';
return CMap::mergeArray(
    require_once(dirname(__FILE__).'/main.php'),
    array(
        'preload' => array('log', 'debug'),
        'modules' => array(
            'gii' => array(
                'class' => 'system.gii.GiiModule',
                'password' => false,
                'ipFilters' => array('127.0.0.1','::1'),
                'generatorPaths'=>array(
                    'application.gii',
                ),
            ),
        ),
        'components' => array(
			/*'cache'=>array(
				'class'=>'system.caching.CMemCache',
				'servers'=>array(
					array('host'=>'localhost', 'port'=>11211, 'weight'=>60),
				),
			),*/
            'debug' => array(
                'class' => 'ext.yii2-debug.Yii2Debug',
            ),
            'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=db1',
			//'connectionString' => 'mysql:host=188.225.76.117;dbname=mland',
			'emulatePrepare' => true,
			'username' => 'db1',
			//'username' => 'admin',
			'password' => '4S8f8P5s',
			//'password' => '48LimJ3gPlrFf4iffRz6',
			'charset' => 'utf8',
			'tablePrefix' => '',
			// включаем профайлер
			'enableProfiling'=>true,
			// показываем значения параметров
			'enableParamLogging' => true,
		),
		/*
            'log'=>array(
                'class'=>'CLogRouter',
                'routes'=>array(
                    array(
                        'class'=>'CFileLogRoute',
                        'levels'=>'trace,log',
                        //'categories'=>'vardump',
                        //'logFile'=>'variables.log'
                    ),
                ),
            ),
			*/
        ),
    )
);
/*Yii::trace(CVarDumper::dumpAsString($_POST),'vardump');*/