public function preDispatch() { if (empty($this->user) || !$this->blogService->isBlogger($this->user)) { $this->_helper->flashMessenger(array('error', "You're not a blogger")); $this->_helper->redirector('index', 'index', 'admin'); } }