/**
  * Creates a new model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  */
 public function actionCreate()
 {
     $model = new Conceptos();
     // Uncomment the following line if AJAX validation is needed
     // $this->performAjaxValidation($model);
     if (isset($_POST['Conceptos'])) {
         $model->attributes = $_POST['Conceptos'];
         if ($model->save()) {
             date_default_timezone_set('America/Caracas');
         }
         $auditoria = new Auditoria();
         $auditoria->id_user = Yii::app()->user->getId();
         $auditoria->accion = 2;
         $auditoria->modelo = $this->modelo;
         $auditoria->id_registro = $model->id;
         $auditoria->fecha = date("Y-m-d h:i:s");
         $auditoria->save(false);
         $this->redirect(array('view', 'id' => $model->id));
     }
     $this->render('create', array('model' => $model));
 }