public function init() { $actions = array('index', 'ajax'); $this->_helper->_acl->allow('admin', $actions); //$this->view->addHelperPath('echolibre/View/Helper', 'Zend_View_Helper_FormStatic'); parent::init(); }
public function init($styles = array()) { $this->tr = Zend_Registry::get('tr'); $actions = array('index', 'ajax', 'history'); $this->_helper->_acl->allow('admin', $actions); parent::init($styles); }
/** * Main Initializer * * This is the public method that will be used by the controller base * using the tyles in the init. * * @param array $styles an array of stylesheets (CSS) */ public function init($styles = array()) { $this->tr = Zend_Registry::get('tr'); $actions = array('index', 'add', 'edit', 'delete', 'sync', 'test', 'code', 'error'); $this->_helper->_acl->allow('admin', $actions); parent::init($styles); }
public function init() { $actions = array('index', 'detail', 'unset', 'unsetall'); $this->_helper->_acl->allow('admin', $actions); $configModel = new Default_Model_Configuration(); $server = $configModel->getKey('api_url'); $cache = $configModel->getKey('cache'); $this->hash = isset($server) ? hash('sha1', $server) : ''; $this->cache_keys = array("Output.default-format", "Errors.user-defined", "Router.routes-prepared", "Internal.database-dsn", "Output.formats-enabled", "Actions.enabled-private", "Actions.enabled-public", "Partners.emails-keys", "Cache.adapter"); parent::init(); }
public function init($styles = array()) { $actions = array('index', 'generate'); $this->_helper->_acl->allow('admin', $actions); $contextSwitch = $this->_helper->getHelper('contextSwitch'); if (!$contextSwitch->hasContext('text')) { $contextSwitch->addContext('text', array('suffix' => 'txt', 'headers' => array('Content-Type' => 'text/plain'))); $contextSwitch->addContext('mdown', array('suffix' => 'mdown', 'headers' => array('Content-Type' => 'text/plain'))); $contextSwitch->addContext('html', array('suffix' => 'html', 'headers' => array('Content-Type' => 'text/html'))); $contextSwitch->addContext('pdf', array('suffix' => 'pdf', 'headers' => array('Content-Type' => 'application/pdf', 'Content-Disposition' => 'Attachment; filename="api_docs-' . @date('Y-m-d') . '.pdf"'))); } $contextSwitch->addActionContext('generate', 'text')->initContext(); $contextSwitch->addActionContext('generate', 'html')->initContext(); $contextSwitch->addActionContext('generate', 'pdf')->initContext(); $contextSwitch->addActionContext('generate', 'mdown')->initContext(); parent::init($styles); }
public function init() { $this->_helper->_acl->allow(null); parent::init(); $this->initView(); }
public function init($styles = array()) { $actions = array('index', 'add', 'edit'); $this->_helper->_acl->allow('admin', $actions); parent::init($styles); }
public function init($styles = array()) { $this->_helper->_acl->allow(null); parent::init($styles); $this->initView(); }
public function init() { $actions = array('index', 'add', 'edit', 'delete'); $this->_helper->_acl->allow('admin', $actions); parent::init(); }
public function init($styles = array()) { $actions = array('index', 'sync', 'makedefault', 'disable', 'enable'); $this->_helper->_acl->allow('admin', $actions); parent::init($styles); }
public function init($styles = array()) { $this->_helper->_acl->allow('admin', array('index')); parent::init($styles); }