Example #1
0
 /**
  * Initialize - disable render view
  *
  * @package     las
  * @version     1.0
  */
 public function initialize()
 {
     $this->view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_NO_RENDER);
     if ($this->request->isPost() != true && $this->request->isAjax() != true) {
         parent::notFoundAction();
     }
 }