Code Context
$selectedCity_details = $this->City->findByName(strtolower($selectedCity));
$category_available = $this->ItemCategoryCity->find('first',array('conditions'=>array('ItemCategoryCity.item_category_id'=>$selectedCategory['ItemCategory']['id'],'ItemCategoryCity.city_id'=>$selectedCity_details['City']['id'],'ItemCategory.addon_category'=>0)));
$category_name = 'gift-packs'
$city = '561b4faa-e600-487c-b318-5a54c0b95850'
$selectedCity = '561b4faa-e600-487c-b318-5a54c0b95850'
$selectedCategory = array(
'ItemCategory' => array(
'id' => '561b4faa-e600-487c-b318-5a54c0b95850',
'name' => 'Starter',
'category_group_id' => null,
'priority' => '4',
'max_qty' => '-1',
'item_type_id' => '24cf3d3a-762e-11e5-859e-f23c91737a7d',
'parent_name_alias' => 'gift-packs',
'desc' => null,
'long_description' => null,
'item_category_id' => null,
'tags' => '',
'meta' => '',
'permalink' => null,
'primary_photo' => '4.1.1) Garlic bread.jpg',
'primary_photo_dir' => '561b4faa-e600-487c-b318-5a54c0b95850',
'category_banner' => '2.jpg',
'category_banner_dir' => '561b4faa-e600-487c-b318-5a54c0b95850',
'addon_category' => '0',
'is_active' => '0',
'created' => '2015-10-12 11:44:02',
'modified' => '2020-07-29 02:46:48'
)
)
$selectedCity_details = array()
ItemsController::category() - APP/Controller/ItemsController.php, line 188
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118