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 = 'dfb-pokal'
$league = array(
'status_code' => (int) 1,
'message' => '',
'data' => array(
(int) 0 => array(
'id' => (int) 64,
'name' => 'DFB Pokal - Đức',
'slug' => 'dfb-pokal',
'vietnamese_name' => 'DFB Pokal - Đức',
'seo_title' => 'Tin tức giải đấu DFB Pokal',
'type' => 'Cup',
'logo' => 'https://langtuccau.com.vn/uploads/65fb2512ab247.png',
'image' => 'https://image.langtuccau.com.vn/uploads/fotor-ai-2023121016212.webp',
'description' => 'Tin bóng đá DFB Pokal mới nhất. Tin bóng đá, lịch thi đấu, kết quả tin chuyển nhượng giải DFB Pokal được cập nhật liên tục',
'body' => '',
'country' => array(
[maximum depth reached]
),
'social' => array(
[maximum depth reached]
),
'api_id' => '81',
'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 = '2023'
$curl = unknown
$response = '{"get":"standings","parameters":{"league":"81","season":"2023"},"errors":[],"results":0,"paging":{"current":1,"total":1},"response":[]}'
$err = ''
$data = array(
'get' => 'standings',
'parameters' => array(
'league' => '81',
'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: Mon, 07 Oct 2024 05:03:23 GMT',
(int) 2 => 'Content-Type: application/json; charset=UTF-8',
(int) 3 => 'Connection: close',
(int) 4 => 'Vary: Accept-Encoding',
(int) 5 => 'Set-Cookie: CAKEPHP=ge3r6n5n6qs0ovb9g3mi5mbpcl; expires=Mon, 07-Oct-2024 09:03:23 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=IyHiDV2aCl16dktFuQzRiDdvCEg1fN51WnfdbtZYgo9GOFtOqHk1fF5GtLw9q6ZgQqKx%2BUQ%2FojHMNPZJrLJAQ1Rfv1EeKOpPrpAKqMhfjNaktlea159xzYDFZfdIsPQvKOm9QVZUehC2G1blcfZxUg%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: 8ceb582e9c706594-SIN'
) 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 = 'dfb-pokal'
$league = array(
'status_code' => (int) 1,
'message' => '',
'data' => array(
(int) 0 => array(
'id' => (int) 64,
'name' => 'DFB Pokal - Đức',
'slug' => 'dfb-pokal',
'vietnamese_name' => 'DFB Pokal - Đức',
'seo_title' => 'Tin tức giải đấu DFB Pokal',
'type' => 'Cup',
'logo' => 'https://langtuccau.com.vn/uploads/65fb2512ab247.png',
'image' => 'https://image.langtuccau.com.vn/uploads/fotor-ai-2023121016212.webp',
'description' => 'Tin bóng đá DFB Pokal mới nhất. Tin bóng đá, lịch thi đấu, kết quả tin chuyển nhượng giải DFB Pokal được cập nhật liên tục',
'body' => '',
'country' => array(
[maximum depth reached]
),
'social' => array(
[maximum depth reached]
),
'api_id' => '81',
'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 = '2023'
$curl = unknown
$response = '{"get":"standings","parameters":{"league":"81","season":"2023"},"errors":[],"results":0,"paging":{"current":1,"total":1},"response":[]}'
$err = ''
$data = array(
'get' => 'standings',
'parameters' => array(
'league' => '81',
'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: Mon, 07 Oct 2024 05:03:23 GMT',
(int) 2 => 'Content-Type: application/json; charset=UTF-8',
(int) 3 => 'Connection: close',
(int) 4 => 'Vary: Accept-Encoding',
(int) 5 => 'Set-Cookie: CAKEPHP=ge3r6n5n6qs0ovb9g3mi5mbpcl; expires=Mon, 07-Oct-2024 09:03:23 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=IyHiDV2aCl16dktFuQzRiDdvCEg1fN51WnfdbtZYgo9GOFtOqHk1fF5GtLw9q6ZgQqKx%2BUQ%2FojHMNPZJrLJAQ1Rfv1EeKOpPrpAKqMhfjNaktlea159xzYDFZfdIsPQvKOm9QVZUehC2G1blcfZxUg%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: 8ceb582e9c706594-SIN'
) 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 DFB Pokal - Đức