public function indexAction()
 {
     $news = new News_Model_News();
     $this->view->article = $news->getRowInstance($this->_getParam('id'));
     if ($this->view->article->date > date('Y-m-d H:i:s') && $this->user->role != Users_Model_User::ROLE_ADMIN) {
         throw new Monkeys_AccessDeniedException();
     }
     $this->_helper->actionStack('index', 'login', 'users');
 }
 public function deleteAction()
 {
     $news = new News_Model_News();
     if (!($article = $news->getRowInstance($this->_getParam('id')))) {
         $this->_helper->FlashMessenger->addMessage($this->view->translate('The article doesn\'t exist.'));
     } else {
         $article->delete();
         $this->_helper->FlashMessenger->addMessage($this->view->translate('The article has been deleted.'));
     }
     $this->_redirect('/news');
 }