public function actiondeleteLI($id)
 {
     $model = Licencia::model()->findByPk($id);
     $model->lic_desabilitado = 1;
     $model->save();
     $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('licencia'));
 }
Exemple #2
0
 public function getlic_count()
 {
     return Licencia::model()->count("emp_rut='{$this->emp_rut}'");
 }