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 = 'ha-giang'
$city = array(
'City' => array(
'name' => 'Hà Giang',
'slug' => 'ha-giang',
'image' => '',
'lat' => '22.766206',
'lon' => '104.938885',
'id' => '60'
),
'District' => array(
(int) 0 => array(
'name' => 'Thành phố Hà Giang',
'slug' => 'thanh-pho-ha-giang',
'city_id' => '60'
),
(int) 1 => array(
'name' => 'Huyện Đồng Văn',
'slug' => 'dong-van',
'city_id' => '60'
),
(int) 2 => array(
'name' => 'Huyện Mèo Vạc',
'slug' => 'meo-vac',
'city_id' => '60'
),
(int) 3 => array(
'name' => 'Huyện Yên Minh',
'slug' => 'yen-minh',
'city_id' => '60'
),
(int) 4 => array(
'name' => 'Huyện Quản Bạ',
'slug' => 'quan-ba',
'city_id' => '60'
),
(int) 5 => array(
'name' => 'Huyện Vị Xuyên',
'slug' => 'vi-xuyen',
'city_id' => '60'
),
(int) 6 => array(
'name' => 'Huyện Bắc Mê',
'slug' => 'bac-me',
'city_id' => '60'
),
(int) 7 => array(
'name' => 'Huyện Hoàng Su Phì',
'slug' => 'hoang-su-phi',
'city_id' => '60'
),
(int) 8 => array(
'name' => 'Huyện Xín Mần',
'slug' => 'xiu-man',
'city_id' => '60'
),
(int) 9 => array(
'name' => 'Huyện Bắc Quang',
'slug' => 'bac-quang',
'city_id' => '60'
),
(int) 10 => array(
'name' => 'Huyện Quang Bình',
'slug' => 'quang-binh',
'city_id' => '60'
)
)
)
$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 = 'Hà Giang'
$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