Exemple #1
0
 private function getMainAreaContentForSelectForm()
 {
     $areaDb = new Model_DbTable_Area();
     $areasearch = $areaDb->getAreaNameByParentLanguage(0, $this->_languageId);
     $areainput = array("" => "--Choose Island--");
     foreach ($areasearch as $row) {
         $areainput[$row['area_id']] = $row['area_name'];
     }
     return $areainput;
 }
 /**
  * IS: -
  * FS: Mengirimkan ke viewer: island, province, staticType, menuType
  * Desc: Fungsi untuk menampilkan region list
  */
 public function regionListAction()
 {
     //$this->_displayContent('list', 'discover');
     // Model
     $areaDb = new Model_DbTable_Area();
     // Data
     $island = $areaDb->getAreaNameByParentLanguage(0, $this->_languageId);
     foreach ($island as $index => $islands) {
         $province[$index] = $areaDb->getAreaNameByParentLanguage($islands['area_id'], $this->_languageId);
     }
     // View
     $this->view->island = $island;
     $this->view->province = $province;
     $this->view->staticType = 'list';
     $this->view->menuType = 'discover';
 }