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 = 'spa'
$city_slug = 'lam-dong'
$city = array(
'City' => array(
'name' => 'Lâm Đồng',
'slug' => 'lam-dong',
'image' => 'lam-dong.png',
'lat' => '11.575279',
'lon' => '108.142867',
'id' => '3'
),
'District' => array(
(int) 0 => array(
'name' => 'Đà Lạt',
'slug' => 'da-lat',
'city_id' => '3'
),
(int) 1 => array(
'name' => 'Bảo Lộc',
'slug' => 'bao-loc',
'city_id' => '3'
),
(int) 2 => array(
'name' => 'Đơn Dương',
'slug' => 'don-duong',
'city_id' => '3'
),
(int) 3 => array(
'name' => 'Di Linh',
'slug' => 'di-linh',
'city_id' => '3'
),
(int) 4 => array(
'name' => 'Đức Trọng',
'slug' => 'duc-trong',
'city_id' => '3'
),
(int) 5 => array(
'name' => 'Lâm Hà',
'slug' => 'lam-ha',
'city_id' => '3'
),
(int) 6 => array(
'name' => 'Đạ Huoai',
'slug' => 'da-huoai',
'city_id' => '3'
),
(int) 7 => array(
'name' => 'Đạ Tẻh',
'slug' => 'da-teh',
'city_id' => '3'
),
(int) 8 => array(
'name' => 'Cát Tiên',
'slug' => 'cat-tien',
'city_id' => '3'
),
(int) 9 => array(
'name' => 'Bảo Lâm',
'slug' => 'bao-lam',
'city_id' => '3'
),
(int) 10 => array(
'name' => 'Lạc Dương',
'slug' => 'lac-duong',
'city_id' => '3'
),
(int) 11 => array(
'name' => 'Đam Rông',
'slug' => 'dam-rong',
'city_id' => '3'
)
)
)
$directory = array(
'Directories' => array(
'name' => 'Spa',
'slug' => 'spa',
'image' => null
)
)
$city_name = 'Lâm Đồng'
$ip = '216.73.216.17'
$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