Incam_PROFIND_Web/www/protected/config/main.php
2012-09-21 16:06:20 +00:00

143 lines
6.5 KiB
PHP

<?php
// Set yiiPath (add extra ../../)
$yiiPath = dirname(__FILE__) . '/../../../yii/framework/yii.php';
// Set YII_DEBUG and YII_TRACE_LEVEL flags
//$debug = true;
//$traceLevel = 0;
$config = array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'theme'=>'profind',
'sourceLanguage' => 'en_US',
'language' => 'es',
'name' => 'PROFIND',
'defaultController' => 'usuario',
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.extensions.yii-mail.YiiMailMessage',
),
'modules'=>array(
),
// application components
'components'=>array(
'user'=>array(
'class' => 'UsuarioWeb',
'allowAutoLogin' => false,
),
// uncomment the following to enable URLs in path-format
/*'urlManager' => array(
'urlFormat' => 'path',
// Ocultar 'index.php' de las URL's.
// Hay que poner un fichero .htaccess con la redirección.
'showScriptName' => false,
'urlSuffix' => '.html',
'rules' => require(dirname(__FILE__) . '/url_rules.php'),
),*/
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
'mail' => array(
'class' => 'application.extensions.yii-mail.YiiMail',
'transportType' => 'smtp',
'transportOptions' => array(
'host' => 'mail.rodax-software.com',
'encryption' => '',
'username' => 'mantenimiento+rodax-software.com',
'password' => '34y96w6d',
'port' => 25,
),
'viewPath' => 'application.views.mails',
),
/*'widgetFactory'=>array(
'widgets'=>array(
'CLinkPager'=>array(
'cssFile'=>(strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css/pager.css',
),
'CJuiAccordion' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiAutoComplete' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiButton' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiDatePicker' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiDialog' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiDraggable' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiDroppable' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiInputWidget' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiProgressBar' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiResizable' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiSelectable' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiSlider' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiSliderInput' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiSortable' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiTabs' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
'CJuiWidget' => array (
'themeUrl' => (strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css',
'theme' => 'plugins',
),
),
),*/
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
'frontpage' => 'http://localhost',
'email_remitente' => 'mantenimiento@rodax-software.com',
),
);