$table_category = new Model_DbTable_CategoryToPoi();
     if ($table_category->checkPoiCatId($poi_id, $cat_id)) {
         $this->view->double_check = FALSE;
     } else {
         $this->view->double_check = TRUE;
         $cat_name = $table_category->insertCategoryToPoi($input);
         $this->loggingaction('destination', 'edit', $poi_id);
         $this->view->cat_name = $cat_name;
         $this->view->poi_id = $poi_id;
         $this->view->cat_id = $cat_id;
     }
 }
 public function savecategorypoiforindoAction()
 {
     $cat_id = $this->_getParam('catid');
     $poi_id = $this->_getParam('poi');
     $input = array('category_id' => $cat_id, 'poi_id' => $poi_id);