Example #1
0
 /**
  * @protected
  * @Over ride
  */
 public function _secure()
 {
     parent::_secure();
     if ($this->user->type !== 'advertiser' || !$this->org) {
         $this->_404();
     }
     $this->setLayout("layouts/advertiser");
 }
Example #2
0
 /**
  * @protected
  * @Over ride
  */
 public function _secure()
 {
     parent::_secure();
     if ($this->user->type !== 'publisher' || !$this->org) {
         $this->noview();
         throw new \Framework\Router\Exception\Controller("Invalid Request");
     }
     $this->setLayout("layouts/publisher");
 }