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 = 'hai-duong'
$city = array(
'City' => array(
'name' => 'Hải Dương',
'slug' => 'hai-duong',
'image' => '',
'lat' => '20.938596',
'lon' => '106.320686',
'id' => '56'
),
'District' => array(
(int) 0 => array(
'name' => 'Thành phố Hải Dương',
'slug' => 'thanh-pho-hai-duong',
'city_id' => '56'
),
(int) 1 => array(
'name' => 'Huyện Chí Linh',
'slug' => 'chi-linh',
'city_id' => '56'
),
(int) 2 => array(
'name' => 'Huyện Nam Sách',
'slug' => 'nam-sach',
'city_id' => '56'
),
(int) 3 => array(
'name' => 'Huyện Kinh Môn',
'slug' => 'kinh-mon',
'city_id' => '56'
),
(int) 4 => array(
'name' => 'Huyện Gia Lộc',
'slug' => 'gia-loc',
'city_id' => '56'
),
(int) 5 => array(
'name' => 'Huyện Tứ Kỳ',
'slug' => 'tu-ky',
'city_id' => '56'
),
(int) 6 => array(
'name' => 'Huyện Thanh Miện',
'slug' => 'thanh-mien',
'city_id' => '56'
),
(int) 7 => array(
'name' => 'Huyện Ninh Giang',
'slug' => 'ninh-giang',
'city_id' => '56'
),
(int) 8 => array(
'name' => 'Huyện Cẩm Giàng',
'slug' => 'cam-giang',
'city_id' => '56'
),
(int) 9 => array(
'name' => 'Huyện Thanh Hà',
'slug' => 'thanh-ha',
'city_id' => '56'
),
(int) 10 => array(
'name' => 'Huyện Kim Thành',
'slug' => 'kim-thanh',
'city_id' => '56'
),
(int) 11 => array(
'name' => 'Huyện Bình Giang',
'slug' => 'binh-giang',
'city_id' => '56'
)
)
)
$directory = array(
'Directories' => array(
'name' => 'Khu vui chơi giải trí',
'slug' => 'khu-vui-choi-giai-tri',
'image' => null
)
)
$city_name = 'Hải Dương'
$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