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 = 'cup-viet-nam'
$league = array(
'status_code' => (int) 1,
'message' => '',
'data' => array(
(int) 0 => array(
'id' => (int) 471,
'name' => 'Cup - Việt Nam',
'slug' => 'cup-viet-nam',
'vietnamese_name' => 'Cúp quốc gia Việt Nam',
'seo_title' => 'Cúp quốc gia Việt Nam',
'type' => 'Cup',
'logo' => 'https://langtuccau.com.vn/uploads/65fb2e7311d03.png',
'image' => 'https://langtuccau.com.vn/uploads/65fb2e7311d03.png',
'description' => 'Tin bóng đá Cup mới nhất. Tin bóng đá, lịch thi đấu, kết quả tin chuyển nhượng giải Cup được cập nhật liên tục',
'body' => '',
'country' => array(
[maximum depth reached]
),
'social' => array(
[maximum depth reached]
),
'api_id' => '341',
'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) 2,
'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":"341","season":"2024"},"errors":[],"results":0,"paging":{"current":1,"total":1},"response":[]}'
$err = ''
$data = array(
'get' => 'standings',
'parameters' => array(
'league' => '341',
'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: Sat, 23 Nov 2024 08:08:16 GMT',
(int) 2 => 'Content-Type: application/json; charset=UTF-8',
(int) 3 => 'Connection: close',
(int) 4 => 'Vary: Accept-Encoding',
(int) 5 => 'Set-Cookie: CAKEPHP=s32i85t928fuhu8g8v21v6gk85; expires=Sat, 23-Nov-2024 12:08:16 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=DX9JOZ3ymFAs%2BHC4R45%2FJ9rg3VJMtogogou8f%2BZoYV1F5LRZtZhYPokzq26VzU%2Fk17fAhHP03NCkk6PbJ4rcvj6BlDl38BKvJ5S4GusP3xQruEqcV%2Fpw6cpMIDqWOb8HMxoBkAkYLzyv0JJsr8LE%2Fw%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: 8e6faba14d714092-SIN',
(int) 15 => 'alt-svc: h3=":443"; ma=86400',
(int) 16 => 'server-timing: cfL4;desc="?proto=TCP&rtt=1139&sent=6&recv=6&lost=0&retrans=0&sent_bytes=3017&recv_bytes=834&delivery_rate=3480206&cwnd=253&unsent_bytes=0&cid=6c908bef9baf1843&ts=63&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 = 'cup-viet-nam'
$league = array(
'status_code' => (int) 1,
'message' => '',
'data' => array(
(int) 0 => array(
'id' => (int) 471,
'name' => 'Cup - Việt Nam',
'slug' => 'cup-viet-nam',
'vietnamese_name' => 'Cúp quốc gia Việt Nam',
'seo_title' => 'Cúp quốc gia Việt Nam',
'type' => 'Cup',
'logo' => 'https://langtuccau.com.vn/uploads/65fb2e7311d03.png',
'image' => 'https://langtuccau.com.vn/uploads/65fb2e7311d03.png',
'description' => 'Tin bóng đá Cup mới nhất. Tin bóng đá, lịch thi đấu, kết quả tin chuyển nhượng giải Cup được cập nhật liên tục',
'body' => '',
'country' => array(
[maximum depth reached]
),
'social' => array(
[maximum depth reached]
),
'api_id' => '341',
'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) 2,
'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":"341","season":"2024"},"errors":[],"results":0,"paging":{"current":1,"total":1},"response":[]}'
$err = ''
$data = array(
'get' => 'standings',
'parameters' => array(
'league' => '341',
'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: Sat, 23 Nov 2024 08:08:16 GMT',
(int) 2 => 'Content-Type: application/json; charset=UTF-8',
(int) 3 => 'Connection: close',
(int) 4 => 'Vary: Accept-Encoding',
(int) 5 => 'Set-Cookie: CAKEPHP=s32i85t928fuhu8g8v21v6gk85; expires=Sat, 23-Nov-2024 12:08:16 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=DX9JOZ3ymFAs%2BHC4R45%2FJ9rg3VJMtogogou8f%2BZoYV1F5LRZtZhYPokzq26VzU%2Fk17fAhHP03NCkk6PbJ4rcvj6BlDl38BKvJ5S4GusP3xQruEqcV%2Fpw6cpMIDqWOb8HMxoBkAkYLzyv0JJsr8LE%2Fw%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: 8e6faba14d714092-SIN',
(int) 15 => 'alt-svc: h3=":443"; ma=86400',
(int) 16 => 'server-timing: cfL4;desc="?proto=TCP&rtt=1139&sent=6&recv=6&lost=0&retrans=0&sent_bytes=3017&recv_bytes=834&delivery_rate=3480206&cwnd=253&unsent_bytes=0&cid=6c908bef9baf1843&ts=63&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 Cup - Việt Nam