Notice (8) : Undefined offset: 0 [APP/Plugin/Football/Controller/LeaguesController.php , line 1150 ]Code Context file_put_contents ( $filePath , $jsonData );
} else { // CUP
$standings = $data [ 'response' ][ 0 ][ 'league' ][ 'standings' ];
$slug = 'king-s-cup-a-rap-xe-ut'
$league = array(
'status_code' => (int) 1,
'message' => '',
'data' => array(
(int) 0 => array(
'id' => (int) 353,
'name' => 'King's Cup - Ả Rập Xê-út',
'slug' => 'king-s-cup-a-rap-xe-ut',
'vietnamese_name' => 'King's Cup - Ả Rập Xê-út',
'seo_title' => 'Tin tức giải đấu King's Cup',
'type' => 'Cup',
'logo' => 'https://langtuccau.com.vn/uploads/65fb2ba392c22.png',
'image' => 'https://langtuccau.com.vn/uploads/65fb2ba392c22.png',
'description' => 'Tin bóng đá King's Cup mới nhất. Tin bóng đá, lịch thi đấu, kết quả tin chuyển nhượng giải King's Cup được cập nhật liên tục',
'body' => '',
'country' => array(
[maximum depth reached]
),
'social' => array(
[maximum depth reached]
),
'api_id' => '504',
'creater' => array(
[maximum depth reached]
),
'priority_number' => (int) 0,
'status' => (int) 1,
'history' => array(
[maximum depth reached]
),
'count_teams' => (int) 0,
'positions' => array([maximum depth reached]),
'count_saves' => (int) 0,
'save' => array(
[maximum depth reached]
),
'count_posts' => (int) 1,
'season' => array(
[maximum depth reached]
),
'active' => array(
[maximum depth reached]
),
'prediction' => array(
[maximum depth reached]
),
'sport_json' => array(
[maximum depth reached]
)
)
),
'total_count' => (int) 1,
'total_pages' => (int) 1,
'prev_page' => '',
'current_page' => (int) 1,
'next_page' => ''
)
$standings = ''
$season = '2024'
$curl = unknown
$response = '{"get":"standings","parameters":{"league":"504","season":"2024"},"errors":[],"results":0,"paging":{"current":1,"total":1},"response":[]}'
$err = ''
$data = array(
'get' => 'standings',
'parameters' => array(
'league' => '504',
'season' => '2024'
),
'errors' => array(),
'results' => (int) 0,
'paging' => array(
'current' => (int) 1,
'total' => (int) 1
),
'response' => array()
)
$json = array()
$http_response_header = array(
(int) 0 => 'HTTP/1.1 200 OK',
(int) 1 => 'Date: Fri, 22 Nov 2024 04:58:53 GMT',
(int) 2 => 'Content-Type: application/json; charset=UTF-8',
(int) 3 => 'Connection: close',
(int) 4 => 'Vary: Accept-Encoding',
(int) 5 => 'Set-Cookie: CAKEPHP=hb80mig3b7t188s4k910g6p965; expires=Fri, 22-Nov-2024 08:58:53 GMT; Max-Age=14400; path=/; secure; HttpOnly',
(int) 6 => 'X-Frame-Options: SAMEORIGIN',
(int) 7 => 'X-XSS-Protection: 1; mode=block',
(int) 8 => 'X-Content-Type-Options: nosniff',
(int) 9 => 'cf-cache-status: DYNAMIC',
(int) 10 => 'Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=ZyGV7Eu2Vl4Qo7LTcAwgBzZHRPWqkqbQ91bYwsZXoN8VOU3JA0QcBYtvtnh%2FdyuoPQIlXe4WnhJAEb0SRvqlKzX6%2BTu4S%2BjK0mc2BocDekfma%2BEok7Go2LtVtyKupagcJZPRGStlJecPOxMNLaBTgw%3D%3D"}],"group":"cf-nel","max_age":604800}',
(int) 11 => 'NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
(int) 12 => 'Strict-Transport-Security: max-age=15552000; includeSubDomains; preload',
(int) 13 => 'Server: cloudflare',
(int) 14 => 'CF-RAY: 8e6658d1de403e25-SIN',
(int) 15 => 'alt-svc: h3=":443"; ma=86400',
(int) 16 => 'server-timing: cfL4;desc="?proto=TCP&rtt=1732&sent=6&recv=6&lost=0&retrans=0&sent_bytes=3017&recv_bytes=844&delivery_rate=2314825&cwnd=253&unsent_bytes=0&cid=333acee703281690&ts=55&x=0"'
) LeaguesController::ranking() - APP/Plugin/Football/Controller/LeaguesController.php, line 1150
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 Warning (2) : Invalid argument supplied for foreach() [APP/Plugin/Football/Controller/LeaguesController.php , line 1151 ]Code Context } else { // CUP
$standings = $data [ 'response' ][ 0 ][ 'league' ][ 'standings' ];
foreach ( $standings as $key_ranking => $standing ) {
$slug = 'king-s-cup-a-rap-xe-ut'
$league = array(
'status_code' => (int) 1,
'message' => '',
'data' => array(
(int) 0 => array(
'id' => (int) 353,
'name' => 'King's Cup - Ả Rập Xê-út',
'slug' => 'king-s-cup-a-rap-xe-ut',
'vietnamese_name' => 'King's Cup - Ả Rập Xê-út',
'seo_title' => 'Tin tức giải đấu King's Cup',
'type' => 'Cup',
'logo' => 'https://langtuccau.com.vn/uploads/65fb2ba392c22.png',
'image' => 'https://langtuccau.com.vn/uploads/65fb2ba392c22.png',
'description' => 'Tin bóng đá King's Cup mới nhất. Tin bóng đá, lịch thi đấu, kết quả tin chuyển nhượng giải King's Cup được cập nhật liên tục',
'body' => '',
'country' => array(
[maximum depth reached]
),
'social' => array(
[maximum depth reached]
),
'api_id' => '504',
'creater' => array(
[maximum depth reached]
),
'priority_number' => (int) 0,
'status' => (int) 1,
'history' => array(
[maximum depth reached]
),
'count_teams' => (int) 0,
'positions' => array([maximum depth reached]),
'count_saves' => (int) 0,
'save' => array(
[maximum depth reached]
),
'count_posts' => (int) 1,
'season' => array(
[maximum depth reached]
),
'active' => array(
[maximum depth reached]
),
'prediction' => array(
[maximum depth reached]
),
'sport_json' => array(
[maximum depth reached]
)
)
),
'total_count' => (int) 1,
'total_pages' => (int) 1,
'prev_page' => '',
'current_page' => (int) 1,
'next_page' => ''
)
$standings = null
$season = '2024'
$curl = unknown
$response = '{"get":"standings","parameters":{"league":"504","season":"2024"},"errors":[],"results":0,"paging":{"current":1,"total":1},"response":[]}'
$err = ''
$data = array(
'get' => 'standings',
'parameters' => array(
'league' => '504',
'season' => '2024'
),
'errors' => array(),
'results' => (int) 0,
'paging' => array(
'current' => (int) 1,
'total' => (int) 1
),
'response' => array()
)
$json = array()
$http_response_header = array(
(int) 0 => 'HTTP/1.1 200 OK',
(int) 1 => 'Date: Fri, 22 Nov 2024 04:58:53 GMT',
(int) 2 => 'Content-Type: application/json; charset=UTF-8',
(int) 3 => 'Connection: close',
(int) 4 => 'Vary: Accept-Encoding',
(int) 5 => 'Set-Cookie: CAKEPHP=hb80mig3b7t188s4k910g6p965; expires=Fri, 22-Nov-2024 08:58:53 GMT; Max-Age=14400; path=/; secure; HttpOnly',
(int) 6 => 'X-Frame-Options: SAMEORIGIN',
(int) 7 => 'X-XSS-Protection: 1; mode=block',
(int) 8 => 'X-Content-Type-Options: nosniff',
(int) 9 => 'cf-cache-status: DYNAMIC',
(int) 10 => 'Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=ZyGV7Eu2Vl4Qo7LTcAwgBzZHRPWqkqbQ91bYwsZXoN8VOU3JA0QcBYtvtnh%2FdyuoPQIlXe4WnhJAEb0SRvqlKzX6%2BTu4S%2BjK0mc2BocDekfma%2BEok7Go2LtVtyKupagcJZPRGStlJecPOxMNLaBTgw%3D%3D"}],"group":"cf-nel","max_age":604800}',
(int) 11 => 'NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
(int) 12 => 'Strict-Transport-Security: max-age=15552000; includeSubDomains; preload',
(int) 13 => 'Server: cloudflare',
(int) 14 => 'CF-RAY: 8e6658d1de403e25-SIN',
(int) 15 => 'alt-svc: h3=":443"; ma=86400',
(int) 16 => 'server-timing: cfL4;desc="?proto=TCP&rtt=1732&sent=6&recv=6&lost=0&retrans=0&sent_bytes=3017&recv_bytes=844&delivery_rate=2314825&cwnd=253&unsent_bytes=0&cid=333acee703281690&ts=55&x=0"'
) LeaguesController::ranking() - APP/Plugin/Football/Controller/LeaguesController.php, line 1151
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
Bảng xếp hạng giải King's Cup - Ả Rập Xê-út