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 = 'cau-lac-bo-spa-va-suc-khoe'
$city_slug = 'dak-nong'
$city = array(
'City' => array(
'name' => 'Đắk Nông',
'slug' => 'dak-nong',
'image' => 'dak-nong.png',
'lat' => '12.264648',
'lon' => '107.609806',
'id' => '34'
),
'District' => array(
(int) 0 => array(
'name' => 'ĐắkR'Lấp',
'slug' => 'dakr-lap',
'city_id' => '34'
),
(int) 1 => array(
'name' => 'Cư Jút',
'slug' => 'cu-jut',
'city_id' => '34'
),
(int) 2 => array(
'name' => 'Đắk Mil',
'slug' => 'dak-mil',
'city_id' => '34'
),
(int) 3 => array(
'name' => 'Krong Nô',
'slug' => 'krong-no',
'city_id' => '34'
),
(int) 4 => array(
'name' => 'Gia Nghĩa',
'slug' => 'gia-nghia',
'city_id' => '34'
),
(int) 5 => array(
'name' => 'Đắk GLong',
'slug' => 'dak-glong',
'city_id' => '34'
),
(int) 6 => array(
'name' => 'Đăk Song',
'slug' => 'dak-song',
'city_id' => '34'
),
(int) 7 => array(
'name' => 'Tuy Đức',
'slug' => 'tuy-duc',
'city_id' => '34'
)
)
)
$directory = array(
'Directories' => array(
'name' => 'Câu lạc bộ spa và sức khỏe',
'slug' => 'cau-lac-bo-spa-va-suc-khoe',
'image' => null
)
)
$city_name = 'Đắk Nô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