<?php

$_SERVER["HTTP_HOST"] = VEXON_SITE_URL;

// required in PHP 5.4
date_default_timezone_set('Europe/Paris');

return array(
	'name'=>VEXON_SITE_URL,

	'basePath'=>VEXON_HTDOCS."/vexon",

	'preload'=>array('log'),

	// autoloading model and component classes
	'import'=>array(
		'application.components.*',
		'application.commands.*',
		'application.models.*',
		'application.extensions.*',
	),

	'components'=>array(

		'request' => array(
			'hostInfo' => 'http://'.$_SERVER["HTTP_HOST"],
			'baseUrl' => '',
		),

		'assetManager'=>array(
			'basePath'=>VEXON_HTDOCS."/assets"
		),

		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning',
					'levels'=>'debug, trace, error, warning',
				),
//				array(
//					'class'=>'CProfileLogRoute',
//					'report'=>'summary',
//				),
			),
		),

		'db'=>array(
			'class'=>'CDbConnection',
			'connectionString'=>"mysql:host=".VEXON_DBHOST.";dbname=".VEXON_DBNAME,

			'username'=>VEXON_DBUSER,
			'password'=>VEXON_DBPASSWORD,

			'enableProfiling'=>false,
			'charset'=>'utf8',
			'schemaCachingDuration'=>3600,
		),

		'cache'=>array(
			'class'=>'CMemCache',
			'keyPrefix'=>'',
			'servers'=>array(
				array(
					'host'=>'127.0.0.1',
					'port'=> 11211,
					'weight'=> 60,
				),
			),
		),

	),

);

