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 = 'ninh-thuan'
$city = array(
'City' => array(
'name' => 'Ninh Thuận',
'slug' => 'ninh-thuan',
'image' => 'ninh-thuan.png',
'lat' => '11.673877',
'lon' => '108.862957',
'id' => '18'
),
'District' => array(
(int) 0 => array(
'name' => 'Phan Rang',
'slug' => 'phan-rang',
'city_id' => '18'
),
(int) 1 => array(
'name' => 'Ninh Hải',
'slug' => 'ninh-hai',
'city_id' => '18'
),
(int) 2 => array(
'name' => 'Ninh Phước',
'slug' => 'ninh-phuoc',
'city_id' => '18'
),
(int) 3 => array(
'name' => 'Thuận Bắc',
'slug' => 'thuan-bac',
'city_id' => '18'
),
(int) 4 => array(
'name' => 'Thuận Nam',
'slug' => 'thuan-nam',
'city_id' => '18'
),
(int) 5 => array(
'name' => 'Trường Sa',
'slug' => 'truong-sa',
'city_id' => '18'
)
)
)
$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 = 'Ninh Thuận'
$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