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 = 'binh-dinh'
$city = array(
'City' => array(
'name' => 'Bình Định',
'slug' => 'binh-dinh',
'image' => 'binh-dinh.png',
'lat' => '14.166532',
'lon' => '108.902683',
'id' => '29'
),
'District' => array(
(int) 0 => array(
'name' => 'Quy Nhơn',
'slug' => 'tp-quy-nhon',
'city_id' => '29'
),
(int) 1 => array(
'name' => 'An Nhơn',
'slug' => 'an-nhon',
'city_id' => '29'
),
(int) 2 => array(
'name' => 'Bồng Sơn',
'slug' => 'bong-son',
'city_id' => '29'
),
(int) 3 => array(
'name' => 'Phú Phong',
'slug' => 'phu-phong',
'city_id' => '29'
),
(int) 4 => array(
'name' => 'Phù Mỹ',
'slug' => 'phu-my',
'city_id' => '29'
),
(int) 5 => array(
'name' => 'Phú Tài',
'slug' => 'phu-tai',
'city_id' => '29'
),
(int) 6 => array(
'name' => 'Phù Cát',
'slug' => 'phu-cat',
'city_id' => '29'
),
(int) 7 => array(
'name' => 'Tuy Phước',
'slug' => 'tuy-phuoc',
'city_id' => '29'
),
(int) 8 => array(
'name' => 'Hoài Ân',
'slug' => 'hoai-an-bd',
'city_id' => '29'
)
)
)
$directory = array(
'Directories' => array(
'name' => 'Khu vui chơi giải trí',
'slug' => 'khu-vui-choi-giai-tri',
'image' => null
)
)
$city_name = 'Bình Định'
$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