예제 #1
0
 public function init()
 {
     parent::init();
     $base_url = Zend_Registry::get('baseurl');
     $this->view->headScript()->appendFile($base_url . '/js/OpenLayers-2.13/OpenLayers.js');
     $this->view->inlineScript()->appendFile($base_url . '/js/html2canvas.js');
 }
예제 #2
0
 public function init()
 {
     parent::init();
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender(TRUE);
     $auth = $this->_request->getParam('auth', '');
     $page = $this->_request->getParam('action');
     /**
      * Access these pages without authentication
      */
     $pages_without_auth = array('get-warehouses-by-level', 'register-user');
     if (!in_array($page, $pages_without_auth) && (empty($auth) || !$this->authenticateUser($auth))) {
         $return = array(array("error" => 'Please provide authentication'));
         echo Zend_Json::encode($return);
         exit;
     }
 }
 public function init()
 {
     parent::init();
 }
예제 #4
0
 public function init()
 {
     parent::init();
     $this->_helper->viewRenderer->setNoRender(TRUE);
     $this->_helper->layout()->disableLayout();
 }
 public function init()
 {
     parent::init();
     $this->_helper->layout->setLayout("dashlets");
 }