fbpx
session->has_userdata('logged_in')) { $userdata = $this->session->userdata('logged_in'); } if ($this->session->has_userdata('location')) { $location = $this->session->userdata('location'); //print_r($location);die; } $latlong1 = array(); $latlong1 = json_encode($latlong1); //echo '
';print_r($data);die;
$i = $j = 0;
$lat_lng = $truck_name = $truck_img = $truck_dis = $cuisine_names = $truck_img = $truck_id = $is_fav = $truck_status = $truck_type = array();
//$cuisine_names='';
/*foreach ($t_d['cuisines'] as $key=>$cuisine) {
	$cuisine_names.=$cuisine->cuisine_name;
	if ($key+1 $cuisine) {
            $cuisine_n .= $cuisine->cuisine_name;
            if ($key + 1 < count($t_d['cuisines'])) {
                $cuisine_n .= " | ";
            }
        }
        if (!empty($t_d['images']) && isset($t_d['images'][0]['name']) && $t_d['images'][0]['name'] != '') {
            $truck_img[$i] = base_url() . 'assets/images/data/' . $t_d['images'][0]['name'];
        }
        $cuisine_names[$i] = $cuisine_n;
        //$truck_img[$i] = $t_d['distance'];
        $i++;
    }
}
/*$lat_lng[0][0] = 30.704649;
$lat_lng[0][1] = 76.717873;
$lat_lng[1][0] = 30.705435;
$lat_lng[1][1] = 76.713442;
$lat_lng[2][0] = 30.706176;
$lat_lng[2][1] = 76.715614;*/
//echo '
';
//print_r($lat_lng);print_r($truck_name);print_r($cuisine_names);die;?>