Code Context // Tọa độ
$ip = $this->Function->get_client_ip();
$json = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$ip"));
$directory_slug = 'khu-vui-choi-giai-tri'
$city_slug = 'dong-thap'
$city = array(
'City' => array(
'name' => 'Đồng Tháp',
'slug' => 'dong-thap',
'image' => 'dong-thap.png',
'lat' => '10.493799',
'lon' => '105.688179',
'id' => '7'
),
'District' => array(
(int) 0 => array(
'name' => 'Thành phố Cao Lãnh',
'slug' => 'thanh-pho-cao-lanh',
'city_id' => '7'
),
(int) 1 => array(
'name' => 'Thị xã Sa Đéc',
'slug' => 'thi-xa-sa-dec',
'city_id' => '7'
),
(int) 2 => array(
'name' => 'Huyện Tân Hồng',
'slug' => 'tan-hong',
'city_id' => '7'
),
(int) 3 => array(
'name' => 'Huyện Hồng Ngự',
'slug' => 'hong-ngu',
'city_id' => '7'
),
(int) 4 => array(
'name' => 'Huyện Tam Nông',
'slug' => 'tam-nong',
'city_id' => '7'
),
(int) 5 => array(
'name' => 'Huyện Thanh Bình',
'slug' => 'thanh-binh',
'city_id' => '7'
),
(int) 6 => array(
'name' => 'Huyện Cao Lãnh',
'slug' => 'cao-lanh',
'city_id' => '7'
),
(int) 7 => array(
'name' => 'Huyện Lấp Vò',
'slug' => 'lap-vo',
'city_id' => '7'
),
(int) 8 => array(
'name' => 'Huyện Tháp Mười',
'slug' => 'thap-muoi',
'city_id' => '7'
),
(int) 9 => array(
'name' => 'Huyện Lai Vung',
'slug' => 'lai-vung',
'city_id' => '7'
),
(int) 10 => array(
'name' => 'Huyện Châu Thành',
'slug' => 'chau-thanh',
'city_id' => '7'
)
)
)
$directory = array(
'Directories' => array(
'name' => 'Khu vui chơi giải trí',
'slug' => 'khu-vui-choi-giai-tri',
'image' => null
)
)
$city_name = 'Đồng Tháp'
$ip = '18.227.46.103'
$http_response_header = array(
(int) 0 => 'HTTP/1.1 429 Too Many Requests',
(int) 1 => 'cache-control: no-cache',
(int) 2 => 'content-type: application/json',
(int) 3 => 'connection: close'
)
file_get_contents - [internal], line ??
CitiesController::directory() - APP/Plugin/Manager/Controller/CitiesController.php, line 1156
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - APP/Vendor/cakephp/cakephp/lib/Cake/Controller/Controller.php, line 491
CroogoAppController::invokeAction() - APP/Vendor/croogo/croogo/Croogo/Controller/CroogoAppController.php, line 220
Dispatcher::_invoke() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - APP/Vendor/cakephp/cakephp/lib/Cake/Routing/Dispatcher.php, line 167
require - APP/webroot/index.php, line 105
[main] - APP/index.php, line 18