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 = 'lang-son'
$city = array(
'City' => array(
'name' => 'Lạng Sơn',
'slug' => 'lang-son',
'image' => '',
'lat' => '21.853708',
'lon' => '106.761519',
'id' => '53'
),
'District' => array(
(int) 0 => array(
'name' => 'Thành phố Lạng Sơn',
'slug' => 'tp-lang-son',
'city_id' => '53'
),
(int) 1 => array(
'name' => 'Huyện Tràng Định',
'slug' => 'trang-dinh',
'city_id' => '53'
),
(int) 2 => array(
'name' => 'Huyện Bình Gia',
'slug' => 'binh-gia',
'city_id' => '53'
),
(int) 3 => array(
'name' => 'Huyện Văn Lãng',
'slug' => 'van-lang',
'city_id' => '53'
),
(int) 4 => array(
'name' => 'Huyện Bắc Sơn',
'slug' => 'bac-son',
'city_id' => '53'
),
(int) 5 => array(
'name' => 'Huyện Văn Quan',
'slug' => 'van-quan',
'city_id' => '53'
),
(int) 6 => array(
'name' => 'Huyện Cao Lộc',
'slug' => 'cao-loc',
'city_id' => '53'
),
(int) 7 => array(
'name' => 'Huyện Lộc Bình',
'slug' => 'loc-binh',
'city_id' => '53'
),
(int) 8 => array(
'name' => 'Huyện Chi Lăng',
'slug' => 'chi-lang',
'city_id' => '53'
),
(int) 9 => array(
'name' => 'Huyện Đình Lập',
'slug' => 'dinh-lap',
'city_id' => '53'
),
(int) 10 => array(
'name' => 'Huyện Hữu Lũng',
'slug' => 'huu-lung',
'city_id' => '53'
)
)
)
$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 = 'Lạng Sơn'
$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