public function ajax_get_list_departure_by_tour_id() { $input = JFactory::getApplication()->input; $tsmart_product_id = $input->getInt('tsmart_product_id'); require_once JPATH_ROOT . '/administrator/components/com_tsmart/helpers/tsmdeparture.php'; $list_departure = tsmDeparture::get_list_departure_by_tour_id($tsmart_product_id); echo json_encode($list_departure); die; }