public function ajax_get_list_tour_id_by_tour_type_id() { $input = JFactory::getApplication()->input; $tsmart_tour_type_id = $input->getInt('tsmart_tour_type_id'); require_once JPATH_ROOT . '/administrator/components/com_tsmart/helpers/tsmproduct.php'; $list_tour_type = vmproduct::get_list_product_by_tour_type_id($tsmart_tour_type_id); echo json_encode($list_tour_type); die; }