コード例 #1
0
 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();
 }