public function init() { parent::init(); if (!pm_Session::getClient()->isAdmin()) { throw new pm_Exception('Permission denied'); } }
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')); }
public function init() { parent::init(); }