/** * IS: - * FS: - * Desc: Fungsi untuk generate RSS */ public function rssAction() { // Tidak pake layout //$this->getResponse()->setHeader('Content-Type', 'text/xml'); //$this->_helper->viewRenderer->setNoRender(true); /* supaya tidak render view */ $this->_helper->layout->disableLayout(); // Model $userstoryDb = new Model_DbTable_UserStory(); $userstoryQuery = $userstoryDb->getAllDataWithContent($this->_languageId); //print_r($userstoryQuery); $userstory = $userstoryDb->fetchAll($userstoryQuery); //echo count($userstory); for ($i = 0; $i < count($userstory); $i++) { //echo $userstory[$i]['title']; $string = $userstory[$i]['title']; $string = str_replace('�', ' ', $string); $string = str_replace('�', ' ', $string); $string = str_replace('', ' ', $string); $string = str_replace('�', ' ', $string); $userstory[$i]['title'] = $this->xmlEntities(strip_tags($this->view->htmlDecode(htmlentities($string, ENT_QUOTES)))); $string = $userstory[$i]['content']; $string = str_replace('�', ' ', $string); $string = str_replace('�', ' ', $string); $string = str_replace('?', ' ', $string); $string = str_replace('�', ' ', $string); $userstory[$i]['content'] = $this->xmlEntities(strip_tags($this->view->htmlDecode(htmlentities($string, ENT_QUOTES)))); } $this->view->data = $userstory; }