コード例 #1
0
ファイル: ProfileController.php プロジェクト: josmel/HosPot
 public function imageAction()
 {
     $this->_helper->layout()->disableLayout();
     $this->_helper->viewRenderer->setNoRender(true);
     $paramFolder = $this->_getParam('folder', null);
     try {
         $rpta = parent::uploadImage($paramFolder);
     } catch (Exception $ex) {
         $rpta = array('state' => 0, 'msj' => $ex->getMessage());
     }
     parent::response(200, $rpta);
 }
コード例 #2
0
ファイル: HallController.php プロジェクト: josmel/HosPot
 public function deleteAction()
 {
     $this->_helper->layout()->disableLayout();
     $this->_helper->viewRenderer->setNoRender(true);
     $id = $this->_getParam('id', 0);
     try {
         if (empty($id)) {
             throw new Exception('wrong params');
         }
         $obj = new Application_Entity_RunSql(self::_TABLECLASS);
         $obj->edit = array($obj->getPK() => $id, 'flagactive' => 0);
         $rpta = array('state' => 1, 'msg' => 'Item eliminado');
     } catch (Exception $exc) {
         $rpta = array('state' => 0, 'msj' => $exc->getMessage());
     }
     parent::response(200, $rpta);
 }
コード例 #3
0
ファイル: IndexController.php プロジェクト: josmel/HosPot
 public function preDispatch()
 {
     parent::preDispatch();
 }
コード例 #4
0
ファイル: LoginController.php プロジェクト: josmel/HosPot
 public function init()
 {
     parent::init();
     $this->_helper->layout->setLayout('layout-login');
 }