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 = 'phu-tho'
$city = array(
'City' => array(
'name' => 'Phú Thọ',
'slug' => 'phu-tho',
'image' => '',
'lat' => '21.268443',
'lon' => '105.204557',
'id' => '40'
),
'District' => array(
(int) 0 => array(
'name' => 'TP. Việt Trì',
'slug' => 'tp-viet-tri',
'city_id' => '40'
),
(int) 1 => array(
'name' => 'Thị xã Phú Thọ',
'slug' => 'thi-xa-phu-tho',
'city_id' => '40'
),
(int) 2 => array(
'name' => 'Huyện Đoan Hùng',
'slug' => 'doan-hung',
'city_id' => '40'
),
(int) 3 => array(
'name' => 'Huyện Thanh Ba',
'slug' => 'thanh-ba',
'city_id' => '40'
),
(int) 4 => array(
'name' => 'Huyện Hạ Hoà',
'slug' => 'ha-hoa',
'city_id' => '40'
),
(int) 5 => array(
'name' => 'Huyện Cẩm Khê',
'slug' => 'cam-khe',
'city_id' => '40'
),
(int) 6 => array(
'name' => 'Huyện Yên Lập',
'slug' => 'yen-lap',
'city_id' => '40'
),
(int) 7 => array(
'name' => 'Huyện Thanh Sơn',
'slug' => 'thanh-son',
'city_id' => '40'
),
(int) 8 => array(
'name' => 'Huyện Phù Ninh',
'slug' => 'phu-ninh',
'city_id' => '40'
),
(int) 9 => array(
'name' => 'Huyện Lâm Thao',
'slug' => 'lam-thao',
'city_id' => '40'
),
(int) 10 => array(
'name' => 'Huyện Tam Nông',
'slug' => 'tam-nong',
'city_id' => '40'
),
(int) 11 => array(
'name' => 'Huyện Thanh Thủy',
'slug' => 'thanh-thuy',
'city_id' => '40'
),
(int) 12 => array(
'name' => 'Huyện Tân Sơn',
'slug' => 'tan-son',
'city_id' => '40'
)
)
)
$directory = array(
'Directories' => array(
'name' => 'Khu vui chơi giải trí',
'slug' => 'khu-vui-choi-giai-tri',
'image' => null
)
)
$city_name = 'Phú Thọ'
$ip = '3.133.87.185'
$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