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 = 'soc-trang'
$city = array(
'City' => array(
'name' => 'Sóc Trăng',
'slug' => 'soc-trang',
'image' => 'soc-trang.png',
'lat' => '9.602521',
'lon' => '105.973905',
'id' => '17'
),
'District' => array(
(int) 0 => array(
'name' => 'Thành phố Sóc Trăng',
'slug' => 'thanh-pho-soc-trang',
'city_id' => '17'
),
(int) 1 => array(
'name' => 'Mỹ Xuyên',
'slug' => 'my-xuyen',
'city_id' => '17'
),
(int) 2 => array(
'name' => 'Mỹ Tú',
'slug' => 'my-tu',
'city_id' => '17'
),
(int) 3 => array(
'name' => 'Cù Lao Dung',
'slug' => 'cu-lao-dung',
'city_id' => '17'
),
(int) 4 => array(
'name' => 'Thị xã Vĩnh Châu',
'slug' => 'thi-xa-vinh-chau',
'city_id' => '17'
),
(int) 5 => array(
'name' => 'Thạnh Trị',
'slug' => 'thnah-tri',
'city_id' => '17'
),
(int) 6 => array(
'name' => 'Kế Sách',
'slug' => 'ke-sach',
'city_id' => '17'
),
(int) 7 => array(
'name' => 'Long Phú',
'slug' => 'long-phu',
'city_id' => '17'
),
(int) 8 => array(
'name' => 'Ngã Năm',
'slug' => 'nga-nam',
'city_id' => '17'
),
(int) 9 => array(
'name' => 'Châu Thành',
'slug' => 'chau-thanh',
'city_id' => '17'
),
(int) 10 => array(
'name' => 'Trần Đề',
'slug' => 'tran-de',
'city_id' => '17'
)
)
)
$directory = array(
'Directories' => array(
'name' => 'Khu vui chơi giải trí',
'slug' => 'khu-vui-choi-giai-tri',
'image' => null
)
)
$city_name = 'Sóc Tră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