$activity_id = $this->_getParam('activityid'); $table_category = new Model_DbTable_Category(); $table_category_desc = new Model_DbTable_CategoryDescription(); $table_categorytopoi = new Model_DbTable_CategoryToPoi(); $table_category_desc->deleteCategory($activity_id); $table_categorytopoi->deleteAllPoiByCategory($activity_id); $table_category->deleteCategory($activity_id); $this->loggingaction('activity', 'delete', $activity_id); $this->_flash->addMessage("1\\Activity Delete Success!"); } public function deleteactivity2Action() { $activity_id = $this->_getParam('activityid'); $table_category = new Model_DbTable_Category(); $table_category_desc = new Model_DbTable_CategoryDescription();