<?php
Yii::setPathOfAlias('chartjs', dirname(__FILE__).'/../extensions/yii-chartjs');
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'SISTEMA DE NOMINA',
        'language'=>'es',
        'sourceLanguage'=>'en',
	'charset'=>'utf-8',
        'defaultController'=>'site/login',
	'preload'=>array('log','bootstrap','chartjs'),

	'import'=>array(
		'application.models.*',
		'application.components.*',
                'ext.bootstrap.*',
	),

	'modules'=>array(
		'gii'=>array(
			'class'=>'system.gii.GiiModule',
			'password'=>'123456',
			'ipFilters'=>array('127.0.0.1','::1'),
		),
	),

	'components'=>array(

		'user'=>array(
			'allowAutoLogin'=>true,
                        'autoUpdateFlash' => false,
		),

                'chartjs' => array('class' => 'chartjs.components.ChartJs'),
            
                'bootstrap' => array(
                'class' => 'ext.bootstrap.components.Booster',
                'responsiveCss' => true, 
                ),
                   'widgetFactory' => array(
                    'widgets' => array(
                        'CLinkPager' => array(
                            'htmlOptions' => array(
                                'class' => 'yiiPager'
                            ),
                            'header' => false,
                            'maxButtonCount' => 3,
                            'cssFile' => false,
                        ),
                        'CGridView' => array(
                            'htmlOptions' => array(
                                'class' => 'table-responsive table p-4   table-striped   table-hover ',
                            ),
                            'pagerCssClass' => 'yiiPager',
                             'itemsCssClass' => 'text-uppercase',
                            'cssFile' =>false,
                            'summaryCssClass' => '',
                          
                        ),
                    ),
                ),
		'urlManager'=>array(
			'urlFormat'=>'path',
                        'showScriptName'=>false,
			'rules'=>array(
				'<controller:\w+>/<id:\d+>'=>'<controller>/view',
				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
			),
		),

		'db'=>require(dirname(__FILE__).'/database.php'),

		'errorHandler'=>array(
			'errorAction'=>'site/error',
		),

		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning',
				),
				
			),
		),

	),

	// using Yii::app()->params['paramName']
	'params'=>array(

                'defaultPageSize'=>10,
                'tt'=>'SISTEMA DE NOMINA',
                'sesion'=>'POR FAVOR, INICIE SESI&Oacute;N.',
                'titulo_sistema'=>'BIENVENIDO AL SISTEMA',
                'footer'=>"SISTEMA DE NOMINA",
                'error'=>'ERROR VUELVA A INTENTARLO NUEVAMENTE',
                'add'=>'GUARDADO CON EXITO',
                'edit'=>'MODIFICADO CON EXITO',
                'eliminado'=>'ELIMINADO CON EXITO',
                'titulo_login'=>'SISTEMA',
                'tipo_usuario_no_valido'=>'SIN PERMISO DE ACCESO',
                'completar'=>'DEBE COMPLETAR EL FORMULARIO',
                
            
	),
);
