/** * This is the default 'index' action that is invoked * when an action is not explicitly requested by users. */ public function actionIndex() { // renders the view file 'protected/views/site/index.php' // using the default layout 'protected/views/layouts/main.php' //$this->layout = '//layouts/column_inicio'; if (Yii::app()->user->isGuest) { $this->redirect(Yii::app()->user->ui->loginUrl); } else { $this->Loginventario(); MiFactoria::InsertaCumple(); $this->render('index'); } //$this->render('index'); //Yii::app()->user->ui->loginUrl }
/** * This is the default 'index' action that is invoked * when an action is not explicitly requested by users. */ public function actionIndex() { // renders the view file 'protected/views/site/index.php' // using the default layout 'protected/views/layouts/main.php' //$this->layout = '//layouts/column_inicio'; if (Yii::app()->user->isGuest) { $this->redirect(Yii::app()->user->ui->loginUrl); } else { $this->Loginventario(); //Registra el log de inventario MiFactoria::InsertaCumple(); //INSERTA CUMPLEAÑOS en lel tablon yii::app()->maletin->flush(); //Limpia el maletin del usuario Bloqueos::clearbloqueos(); $this->render('index'); } //$this->render('index'); //Yii::app()->user->ui->loginUrl }
public function inserta() { MiFactoria::InsertaCumple(); }
/img/cog.png" width="20" height="20" alt="Datos maestros"> </span> <span class="summary-title"> <?php echo CHtml::link("Configuracion", Yii::app()->baseUrl . "/configuracion"); ?> </span> </li> <li> <span class="summary-icon2"> <img src="<?php echo $baseUrl; ?> /img/lock.png" width="25" height="25" alt="Datos maestros"> </span> <span class="summary-title"> <?php echo CHtml::link("Seguridad", Yii::app()->user->ui->userManagementAdminUrl); ?> </span> </li> <li> <span class="summary-icon2"> <img src="<?php echo $baseUrl; ?> /img/Cluster.png" width="20" height="20" alt="Datos maestros"> </span> <span class="summary-title"> <?php echo CHtml::link("Base de datos", Yii::app()->baseUrl . "/backup"); ?> </span> </li>