// fetch the county list from our main URL source for them
// Get the string from the URL
$json = file_get_contents("https://birthdayclubhub.vercel.app/api/counties/by-slug");
file_get_contents - [internal], line ??
CustomHelper::__construct() - APP/View/Helper/CustomHelper.php, line 27
HelperCollection::load() - CORE/Cake/View/HelperCollection.php, line 136
View::loadHelpers() - CORE/Cake/View/View.php, line 884
View::render() - CORE/Cake/View/View.php, line 464
Controller::render() - CORE/Cake/Controller/Controller.php, line 948
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 194
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 110
// fetch the county list from our main URL source for them
// Get the string from the URL
$json = file_get_contents("https://birthdayclubhub.vercel.app/api/counties/by-slug");
file_get_contents - [internal], line ??
CustomHelper::__construct() - APP/View/Helper/CustomHelper.php, line 27
HelperCollection::load() - CORE/Cake/View/HelperCollection.php, line 136
View::loadHelpers() - CORE/Cake/View/View.php, line 884
View::render() - CORE/Cake/View/View.php, line 464
Controller::render() - CORE/Cake/Controller/Controller.php, line 948
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 194
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 110
Warning (2): file_get_contents(https://birthdayclubhub.vercel.app/api/counties/by-slug) [function.file-get-contents]: failed to open stream: operation failed [APP/View/Helper/CustomHelper.php, line 27]
// fetch the county list from our main URL source for them
// Get the string from the URL
$json = file_get_contents("https://birthdayclubhub.vercel.app/api/counties/by-slug");
file_get_contents - [internal], line ??
CustomHelper::__construct() - APP/View/Helper/CustomHelper.php, line 27
HelperCollection::load() - CORE/Cake/View/HelperCollection.php, line 136
View::loadHelpers() - CORE/Cake/View/View.php, line 884
View::render() - CORE/Cake/View/View.php, line 464
Controller::render() - CORE/Cake/Controller/Controller.php, line 948
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 194
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 110
Warning (2): Invalid argument supplied for foreach() [APP/View/Helper/CustomHelper.php, line 40]
// In the case of this input, do key and array lookups to get the values
// var_dump($counties_json[0]);
foreach($counties_json as $county_slug => $county_obj) {
$json = false
$counties_json = null
CustomHelper::__construct() - APP/View/Helper/CustomHelper.php, line 40
HelperCollection::load() - CORE/Cake/View/HelperCollection.php, line 136
View::loadHelpers() - CORE/Cake/View/View.php, line 884
View::render() - CORE/Cake/View/View.php, line 464
Controller::render() - CORE/Cake/Controller/Controller.php, line 948
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 194
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 110
eBirthdayClubs - Birthday surprises for 30 days after your birthday!