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-giai-tri-tu-nhan'
$city_slug = 'son-la'
$city = array(
'City' => array(
'name' => 'Sơn La',
'slug' => 'son-la',
'image' => '',
'lat' => '21.102228',
'lon' => '103.728917',
'id' => '46'
),
'District' => array(
(int) 0 => array(
'name' => 'Thành phố Sơn La',
'slug' => 'thi-xa-son-la',
'city_id' => '46'
),
(int) 1 => array(
'name' => 'Huyện Quỳnh Nhai',
'slug' => 'muong-nhai',
'city_id' => '46'
),
(int) 2 => array(
'name' => 'Huyện Mường La',
'slug' => 'muong-la',
'city_id' => '46'
),
(int) 3 => array(
'name' => 'Huyện Thuận Châu',
'slug' => 'thuan-chau',
'city_id' => '46'
),
(int) 4 => array(
'name' => 'Huyện Bắc Yên',
'slug' => 'bac-yen',
'city_id' => '46'
),
(int) 5 => array(
'name' => 'Huyện Phù Yên',
'slug' => 'phu-yen',
'city_id' => '46'
),
(int) 6 => array(
'name' => 'Huyện Mai Sơn',
'slug' => 'mai-son',
'city_id' => '46'
),
(int) 7 => array(
'name' => 'Huyện Yên Châu',
'slug' => 'yen-chau',
'city_id' => '46'
),
(int) 8 => array(
'name' => 'Huyện Sông Mã',
'slug' => 'song-ma',
'city_id' => '46'
),
(int) 9 => array(
'name' => 'Huyện Mộc Châu',
'slug' => 'moc-chau',
'city_id' => '46'
),
(int) 10 => array(
'name' => 'Huyện Sốp Cộp',
'slug' => 'sop-cop',
'city_id' => '46'
)
)
)
$directory = array(
'Directories' => array(
'name' => 'Câu lạc bộ giải trí tư nhân',
'slug' => 'cau-lac-bo-giai-tri-tu-nhan',
'image' => null
)
)
$city_name = 'Sơn La'
$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