$this->_helper->viewRenderer->setNoRender(true);
     // Param
     $name = $this->_getParam('name');
     // Model
     $destDescDb = new Model_DbTable_DestinationDescription();
     // Data
     $destination = $destDescDb->getSearchByName($name, $this->_languageId);
     $destinationData = $this->_createArrayDestination($destination);
     echo json_encode($destinationData);
 }
 /**
  * IS: 
  * FS: 
  * Desc: Fungsi untuk mendapatkan destinasi berdasarkan id yang diberikan
  */
 public function destinationByIdAction()
 {
     // Tidak pake view
         $area_child->removeDecorator('Label');
         if (!empty($functions)) {
             $area_child->setAttrib('onchange', $functions);
         }
         $this->view->selectbox = $area_child;
     }
 }
 /**
  * IS:
  * FS:
  * Desc:
  */
 public function destinationdataAction()
 {
     $type = $this->_getParam('type');
     $poi_id = $this->_getParam('poiid');
     $this->view->type = $type;
     /* preparing table instance */
     $table_categorytopoi = new Model_DbTable_CategoryToPoi();
     $table_category = new Model_DbTable_Category();
     $table_destination = new Model_DbTable_Destination();
     $table_areatopoi = new Model_DbTable_AreaToPoi();
     /* get the main category */
     if ($type == 'category') {
         $main_category = $table_destination->getMainCategoryById($poi_id);
         $category_data = $table_categorytopoi->getCategoryByPoiId($poi_id, 1);
         $this->view->category_data = $category_data;
         $this->view->main_category = $main_category;
     } elseif ($type == 'area') {