public function approveAction()
 {
     $this->_helper->viewRenderer->setNoRender(true);
     if ($this->_userInfo->canApprove) {
         $id = $this->_getParam('id');
         $dbTable = new Model_DbTable_Article();
         $dbTable->fetchRow("article_id = {$id}")->setFromArray(array("status" => Model_DbTable_Article::PUBLISH))->save();
         $this->_helper->flashMessenger->addMessage("Approved successfully");
     }
     $this->_helper->redirector("index");
 }
 protected function _generateBreadcrumb()
 {
     $category = $this->_getParam('category');
     $listTitle = $this->getTitle($category);
     $listUrl = $this->getUrl($category);
     if ($this->_hasParam('id')) {
         $articleId = $this->_getParam('id');
         $articleDescDb = new Model_DbTable_Article();
         $articleTitle = $articleDescDb->getTitleById($articleId, $this->_languageId);
     }
     $texthomelink = $this->view->translate('id_menu_home');
     $links = null;
     switch ($this->_request->getActionName()) {
         case 'detail':
             $links = array($texthomelink => $this->view->baseUrl('/'), $listTitle => $listUrl, $articleTitle => '');
             $this->view->pageTitle = $articleTitle;
             break;
         case 'index':
         default:
             $links = array($texthomelink => $this->view->baseUrl('/'), $listTitle => '');
             $this->view->pageTitle = $listTitle;
     }
     Zend_Registry::set('breadcrumb', $links);
 }