Exemplo n.º 1
0
 public function before()
 {
     $this->isAjax = true;
     parent::before();
     if (empty($_SESSION['uid'])) {
         $this->echoJson(false, "invalid uid");
     }
     $this->uid = $_SESSION['uid'];
 }
Exemplo n.º 2
0
 public function before()
 {
     parent::before();
     // -- Set the Company
     // ------------------
     $this->_company = \Input::post('company');
     // -- Client ID
     // ------------
     $this->_clientID = (int) \Input::post('clientID');
     $this->_setDatabases();
 }