public function init()
 {
     parent::init();
     if (!pm_Session::getClient()->isAdmin()) {
         throw new pm_Exception('Permission denied');
     }
 }
示例#2
0
 public function init()
 {
     parent::init();
     // Init title for all actions
     $this->view->pageTitle = 'Example Module';
     // Init tabs for all actions
     $this->view->tabs = array(array('title' => 'Form', 'action' => 'form'), array('title' => 'Tools', 'action' => 'tools'), array('title' => 'List', 'action' => 'list'));
 }
示例#3
0
 public function init()
 {
     parent::init();
 }