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 = 'fa-cup-anh'
$league = array(
'status_code' => (int) 1,
'message' => '',
'data' => array(
(int) 0 => array(
'id' => (int) 113,
'name' => 'FA Cup - Anh',
'slug' => 'fa-cup-anh',
'vietnamese_name' => 'FA Cup Anh',
'seo_title' => 'Tin tức giải đấu FA Cup',
'type' => 'Cup',
'logo' => 'https://langtuccau.com.vn/uploads/65fb2602869b1.png',
'image' => 'https://image.langtuccau.com.vn/uploads/fotor-ai-2023121016212.webp',
'description' => 'Tin bóng đá FA Cup mới nhất. Tin bóng đá, lịch thi đấu, kết quả tin chuyển nhượng giải FA Cup được cập nhật liên tục',
'body' => '',
'country' => array(
[maximum depth reached]
),
'social' => array(
[maximum depth reached]
),
'api_id' => '45',
'creater' => array(
[maximum depth reached]
),
'priority_number' => (int) 6,
'status' => (int) 1,
'history' => array(
[maximum depth reached]
),
'count_teams' => (int) 731,
'positions' => array([maximum depth reached]),
'count_saves' => (int) 0,
'save' => array(
[maximum depth reached]
),
'count_posts' => (int) 86,
'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 = '2023'
$curl = unknown
$response = '{"get":"standings","parameters":{"league":"45","season":"2023"},"errors":[],"results":0,"paging":{"current":1,"total":1},"response":[]}'
$err = ''
$data = array(
'get' => 'standings',
'parameters' => array(
'league' => '45',
'season' => '2023'
),
'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: Thu, 21 Nov 2024 10:09:41 GMT',
(int) 2 => 'Content-Type: application/json; charset=UTF-8',
(int) 3 => 'Connection: close',
(int) 4 => 'Vary: Accept-Encoding',
(int) 5 => 'Set-Cookie: CAKEPHP=q2sebts30oec6gi2e30tfmbb8u; expires=Thu, 21-Nov-2024 14:09:41 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=MO7rOchMOvEBdRIHmONv%2FSD4%2BqUUYllw8nSdlngqijyfxDmUw%2BoYWyF%2BKT0U1iJrHtSrdZ9abqwCTYFg3LJreu51kCEQj5tjrJOFe%2FxQU1E6zzqHgUi4t3XElXCOZtj6v6%2FFKkqs1jkpkBcnLWIM7Q%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: 8e5fe2bc7c196009-SIN',
(int) 15 => 'alt-svc: h3=":443"; ma=86400',
(int) 16 => 'server-timing: cfL4;desc="?proto=TCP&rtt=2874&sent=6&recv=6&lost=0&retrans=0&sent_bytes=3016&recv_bytes=832&delivery_rate=2287330&cwnd=239&unsent_bytes=0&cid=37664165a53cc281&ts=102&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 = 'fa-cup-anh'
$league = array(
'status_code' => (int) 1,
'message' => '',
'data' => array(
(int) 0 => array(
'id' => (int) 113,
'name' => 'FA Cup - Anh',
'slug' => 'fa-cup-anh',
'vietnamese_name' => 'FA Cup Anh',
'seo_title' => 'Tin tức giải đấu FA Cup',
'type' => 'Cup',
'logo' => 'https://langtuccau.com.vn/uploads/65fb2602869b1.png',
'image' => 'https://image.langtuccau.com.vn/uploads/fotor-ai-2023121016212.webp',
'description' => 'Tin bóng đá FA Cup mới nhất. Tin bóng đá, lịch thi đấu, kết quả tin chuyển nhượng giải FA Cup được cập nhật liên tục',
'body' => '',
'country' => array(
[maximum depth reached]
),
'social' => array(
[maximum depth reached]
),
'api_id' => '45',
'creater' => array(
[maximum depth reached]
),
'priority_number' => (int) 6,
'status' => (int) 1,
'history' => array(
[maximum depth reached]
),
'count_teams' => (int) 731,
'positions' => array([maximum depth reached]),
'count_saves' => (int) 0,
'save' => array(
[maximum depth reached]
),
'count_posts' => (int) 86,
'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 = '2023'
$curl = unknown
$response = '{"get":"standings","parameters":{"league":"45","season":"2023"},"errors":[],"results":0,"paging":{"current":1,"total":1},"response":[]}'
$err = ''
$data = array(
'get' => 'standings',
'parameters' => array(
'league' => '45',
'season' => '2023'
),
'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: Thu, 21 Nov 2024 10:09:41 GMT',
(int) 2 => 'Content-Type: application/json; charset=UTF-8',
(int) 3 => 'Connection: close',
(int) 4 => 'Vary: Accept-Encoding',
(int) 5 => 'Set-Cookie: CAKEPHP=q2sebts30oec6gi2e30tfmbb8u; expires=Thu, 21-Nov-2024 14:09:41 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=MO7rOchMOvEBdRIHmONv%2FSD4%2BqUUYllw8nSdlngqijyfxDmUw%2BoYWyF%2BKT0U1iJrHtSrdZ9abqwCTYFg3LJreu51kCEQj5tjrJOFe%2FxQU1E6zzqHgUi4t3XElXCOZtj6v6%2FFKkqs1jkpkBcnLWIM7Q%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: 8e5fe2bc7c196009-SIN',
(int) 15 => 'alt-svc: h3=":443"; ma=86400',
(int) 16 => 'server-timing: cfL4;desc="?proto=TCP&rtt=2874&sent=6&recv=6&lost=0&retrans=0&sent_bytes=3016&recv_bytes=832&delivery_rate=2287330&cwnd=239&unsent_bytes=0&cid=37664165a53cc281&ts=102&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 FA Cup - Anh