2012-01-26 11:01:38 +00:00
|
|
|
<?php
|
|
|
|
|
|
2012-03-06 21:01:06 +00:00
|
|
|
// Set yiiPath (add extra ../../)
|
|
|
|
|
$yiiPath = dirname(__FILE__) . '/../../../yii/framework/yii.php';
|
|
|
|
|
|
|
|
|
|
// Set YII_DEBUG and YII_TRACE_LEVEL flags
|
2012-06-06 16:45:38 +00:00
|
|
|
//$debug = true;
|
|
|
|
|
//$traceLevel = 0;
|
2012-01-26 11:01:38 +00:00
|
|
|
|
2012-03-06 21:01:06 +00:00
|
|
|
$config = array(
|
2012-01-26 11:01:38 +00:00
|
|
|
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
|
2012-03-06 21:01:06 +00:00
|
|
|
'name'=>'Intranet',
|
2012-03-01 19:30:11 +00:00
|
|
|
'sourceLanguage' =>'en_US',
|
|
|
|
|
'language' =>'es',
|
2012-01-26 11:01:38 +00:00
|
|
|
|
|
|
|
|
// preloading 'log' component
|
|
|
|
|
'preload'=>array('log'),
|
|
|
|
|
|
|
|
|
|
// autoloading model and component classes
|
|
|
|
|
'import'=>array(
|
2012-05-04 09:02:28 +00:00
|
|
|
'application.models.*',
|
|
|
|
|
'application.components.*',
|
|
|
|
|
'ext.PageSize.*',
|
|
|
|
|
'application.modules.auditTrail.models.AuditTrail',
|
2012-01-26 11:01:38 +00:00
|
|
|
),
|
2012-05-04 09:02:28 +00:00
|
|
|
|
2012-01-26 11:01:38 +00:00
|
|
|
'modules'=>array(
|
2012-05-04 09:02:28 +00:00
|
|
|
'auditTrail'=>array(
|
|
|
|
|
'userClass' => 'Usuario', // the class name for the user object
|
|
|
|
|
'userIdColumn' => 'id', // the column name of the primary key for the user
|
|
|
|
|
'userNameColumn' => 'username', // the column name of the primary key for the user
|
|
|
|
|
),
|
2012-01-26 11:01:38 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
|
|
// application components
|
|
|
|
|
'components'=>array(
|
2012-07-25 14:59:13 +00:00
|
|
|
'user'=>array(
|
2012-03-01 19:30:11 +00:00
|
|
|
// enable cookie-based authentication
|
|
|
|
|
'allowAutoLogin'=>true,
|
|
|
|
|
),
|
|
|
|
|
// uncomment the following to enable URLs in path-format
|
2012-03-27 14:43:43 +00:00
|
|
|
/*'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'),
|
2012-03-08 19:02:29 +00:00
|
|
|
),*/
|
2012-03-27 14:43:43 +00:00
|
|
|
|
2012-03-01 19:30:11 +00:00
|
|
|
'errorHandler'=>array(
|
|
|
|
|
// use 'site/error' action to display errors
|
|
|
|
|
'errorAction'=>'site/error',
|
|
|
|
|
),
|
|
|
|
|
'widgetFactory'=>array(
|
|
|
|
|
'widgets'=>array(
|
|
|
|
|
'CLinkPager'=>array(
|
|
|
|
|
'cssFile'=>(strlen(dirname($_SERVER['SCRIPT_NAME']))>1 ? dirname($_SERVER['SCRIPT_NAME']) : '' ) . '/css/pager.css',
|
|
|
|
|
),
|
2012-07-25 14:59:13 +00:00
|
|
|
|
|
|
|
|
'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',
|
|
|
|
|
),
|
2012-03-01 19:30:11 +00:00
|
|
|
),
|
|
|
|
|
),
|
2012-01-26 11:01:38 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
|
|
// application-level parameters that can be accessed
|
|
|
|
|
// using Yii::app()->params['paramName']
|
|
|
|
|
'params'=>array(
|
2012-03-01 19:30:11 +00:00
|
|
|
// PageSize extension
|
2012-03-06 21:01:06 +00:00
|
|
|
'defaultPageSize' => 50,
|
2012-03-01 19:30:11 +00:00
|
|
|
'pageSizeOptions' => array(10=>10,20=>20,50=>50,100=>100),
|
|
|
|
|
),
|
2012-01-26 11:01:38 +00:00
|
|
|
);
|