/**
  * IS: Parameter id terdeklarasi
  * FS: Mengirimkan ke viewer: pageTitle
  * Desc: Fungsi untuk generate breadcrumb
  */
 protected function _generateBreadcrumb()
 {
     if ($this->_hasParam('id')) {
         // Param
         $categoryId = $this->_getParam('id');
         $parentCategoryTitle = null;
         $parentCategoryId = null;
         // Model
         $catDescDb = new Model_DbTable_CategoryDescription();
         // Data
         $activityTitle = $catDescDb->getNameByLang($categoryId, $this->_languageId);
         $activityTitle = $activityTitle['name'];
     }
     if ($this->_hasParam('parentid')) {
         $parentCategoryId = $this->_getParam('parentid');
         // Model
         $catDescDb = new Model_DbTable_CategoryDescription();
         // Data
         $parentCategoryTitle = $catDescDb->getNameByLang($parentCategoryId, $this->_languageId);
         $parentCategoryTitle = $parentCategoryTitle['name'];
     }
     $texthomelink = $this->view->translate('id_menu_home');
     $links = null;
     switch ($this->_request->getActionName()) {
         case 'index':
         default:
             $title = $this->view->translate('Category');
             $links = array($texthomelink => $this->view->baseUrl('/'), $title => '');
             $this->view->pageTitle = $title;
             break;
         case 'detail':
             $links = array($texthomelink => $this->view->baseUrl('/'), $activityTitle => '');
     }
     Zend_Registry::set('breadcrumb', $links);
 }