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 = 'cua-hang-ban-thuc-an-ngon'
$city_slug = 'cao-bang'
$city = array(
'City' => array(
'name' => 'Cao Bằng',
'slug' => 'cao-bang',
'image' => '',
'lat' => '22.635689',
'lon' => '106.252214',
'id' => '58'
),
'District' => array(
(int) 0 => array(
'name' => 'Thành phố Cao Bằng',
'slug' => 'thi-xa-cao-bang',
'city_id' => '58'
),
(int) 1 => array(
'name' => 'Huyện Bảo Lạc',
'slug' => 'bao-lac',
'city_id' => '58'
),
(int) 2 => array(
'name' => 'Huyện Thông Nông',
'slug' => 'thong-nong',
'city_id' => '58'
),
(int) 3 => array(
'name' => 'Huyện Hà Quảng',
'slug' => 'ha-quang',
'city_id' => '58'
),
(int) 4 => array(
'name' => 'Huyện Trà Lĩnh',
'slug' => 'tra-linh',
'city_id' => '58'
),
(int) 5 => array(
'name' => 'Huyện Trùng Khánh',
'slug' => 'trung-khanh',
'city_id' => '58'
),
(int) 6 => array(
'name' => 'Huyện Nguyên Bình',
'slug' => 'nguyen-binh',
'city_id' => '58'
),
(int) 7 => array(
'name' => 'Huyện Hoà An',
'slug' => 'hoa-an',
'city_id' => '58'
),
(int) 8 => array(
'name' => 'Huyện Quảng Uyên',
'slug' => 'quang-uyen',
'city_id' => '58'
),
(int) 9 => array(
'name' => 'Huyện Thạch An',
'slug' => 'thach-an',
'city_id' => '58'
),
(int) 10 => array(
'name' => 'Huyện Hạ Lang',
'slug' => 'ha-lang',
'city_id' => '58'
),
(int) 11 => array(
'name' => 'Huyện Bảo Lâm',
'slug' => 'bao-lam',
'city_id' => '58'
),
(int) 12 => array(
'name' => 'Huyện Phục Hoà',
'slug' => 'phuc-hoa',
'city_id' => '58'
)
)
)
$directory = array(
'Directories' => array(
'name' => 'Cửa hàng bán thức ăn ngon',
'slug' => 'cua-hang-ban-thuc-an-ngon',
'image' => null
)
)
$city_name = 'Cao Bằng'
$ip = '18.219.92.7'
$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