Code Context
// check if parent category in city or not.
$cate_in_city = $this->ItemCategoryCity->find('first',array('conditions'=>array('ItemCategoryCity.item_category_id'=>$selectedItem['ItemCategory']['item_category_id'],'ItemCategoryCity.city_id'=>$selectedCity_details['City']['id'])));
$item_name = 'Tom-&-Jerry'
$id = '5625e8aa-2238-48c7-b24c-4fce6aba72de'
$city = null
$selectedItem = array(
'Item' => array(
'id' => '5625e8aa-2238-48c7-b24c-4fce6aba72de',
'name' => 'Tom & Jerry ( choco bite) ',
'priority' => '0',
'sku_code' => 'Kid-6',
'variant' => '2',
'variant_name' => 'KGS',
'weight_in_kg' => '2.000',
'item_id' => null,
'stock_type' => '1',
'featured' => '0',
'item_features' => null,
'is_activated' => '1',
'short_desc' => null,
'long_desc' => '',
'keyword' => '',
'alias' => null,
'item_size' => null,
'item_color' => null,
'item_category_id' => '561b3e53-ecf8-41b6-81f6-4fdfc0b95850',
'item_type_id' => null,
'tax_price' => '0',
'shipping_charges' => '-1.00',
'item_added_cart' => '0',
'item_viewed' => '0',
'primary_photo' => 'TOM AND JERRY CARTOON.jpg',
'primary_photo_directory' => '5625e8aa-2238-48c7-b24c-4fce6aba72de',
'permalink' => null,
'rating' => '0.0',
'franchise_only' => '0',
'vat_percent' => '0.00',
'cst_percent' => '0.00',
'cst_cform_percent' => '0.00',
'created' => '0000-00-00 00:00:00',
'modified' => '2019-05-15 17:06:37'
),
'Parent' => array(
'id' => null,
'name' => null,
'priority' => null,
'sku_code' => null,
'variant' => null,
'variant_name' => null,
'weight_in_kg' => null,
'item_id' => null,
'stock_type' => null,
'featured' => null,
'item_features' => null,
'is_activated' => null,
'short_desc' => null,
'long_desc' => null,
'keyword' => null,
'alias' => null,
'item_size' => null,
'item_color' => null,
'item_category_id' => null,
'item_type_id' => null,
'tax_price' => null,
'shipping_charges' => null,
'item_added_cart' => null,
'item_viewed' => null,
'primary_photo' => null,
'primary_photo_directory' => null,
'permalink' => null,
'rating' => null,
'franchise_only' => null,
'vat_percent' => null,
'cst_percent' => null,
'cst_cform_percent' => null,
'created' => null,
'modified' => null
),
'ItemCategory' => array(
'id' => '561b3e53-ecf8-41b6-81f6-4fdfc0b95850',
'name' => 'Kids Special',
'category_group_id' => null,
'priority' => '5',
'max_qty' => '-1',
'item_type_id' => 'f132fe4d-68f7-11e5-859e-f23c91737a7d',
'parent_name_alias' => 'kids-special-cakes',
'desc' => null,
'long_description' => null,
'item_category_id' => null,
'tags' => 'Mr Puff Gandhi bakery- get kids cakes in vadodara now also available in Ahmedabad, surat ',
'meta' => 'cakes for kids, cartoon cakes, eggless cakes, best cakes in vadodara, baroda',
'permalink' => null,
'primary_photo' => 'MICKEY-MY-FRIEND-p.png',
'primary_photo_dir' => '561b3e53-ecf8-41b6-81f6-4fdfc0b95850',
'category_banner' => '',
'category_banner_dir' => '',
'addon_category' => '0',
'is_active' => '0',
'created' => '2015-10-12 10:30:03',
'modified' => '2020-08-04 03:05:09'
),
'ItemStock' => array(
'id' => '5625e8ab-4d3c-4911-bef5-41f86aba72de',
'ref_no' => 'IN0005625e8ab12c08',
'item_id' => '5625e8aa-2238-48c7-b24c-4fce6aba72de',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '2075.00',
'discount_price' => '2075.00',
'discount_percentage' => '0.0',
'created' => '2015-10-20 12:39:31',
'modified' => '2015-10-20 12:39:31',
(int) 0 => array(
'id' => '5625e8ab-4d3c-4911-bef5-41f86aba72de',
'ref_no' => 'IN0005625e8ab12c08',
'item_id' => '5625e8aa-2238-48c7-b24c-4fce6aba72de',
'total_quantity' => '-1',
'exhausted_quantity' => '0',
'order_date' => null,
'delivery_date' => null,
'expiry_date' => null,
'vendor_id' => '53e9c4b2-6c28-4a73-a8c3-3519bf642048',
'price' => '2075.00',
'discount_price' => '2075.00',
'discount_percentage' => '0.0',
'created' => '2015-10-20 12:39:31',
'modified' => '2015-10-20 12:39:31'
)
),
'ItemVariants' => array(),
'ItemCity' => array(
(int) 0 => array(
'id' => '5625e8ab-eb58-412a-951d-4d566aba72de',
'city_id' => '560f0dec-c7dc-4413-9c6e-461f6aba72de',
'item_id' => '5625e8aa-2238-48c7-b24c-4fce6aba72de',
'shipping_charges' => '-1',
'created' => '2015-10-20 12:39:31',
'modified' => '2015-10-20 12:39:31'
),
(int) 1 => array(
'id' => '56c1f4ed-b174-462a-9876-44cc6aba72de',
'city_id' => '56265786-825c-4a02-ae2a-40a96aba72de',
'item_id' => '5625e8aa-2238-48c7-b24c-4fce6aba72de',
'shipping_charges' => '-1',
'created' => '2016-02-15 21:25:25',
'modified' => '2016-02-15 21:25:25'
)
),
'ItemGalleryPhoto' => array()
)
$is_midnight = false
$today = '16:55:23'
$today_arr = array(
(int) 0 => '16',
(int) 1 => '55',
(int) 2 => '23'
)
$selectedCity = null
$selectedCity_details = array()
ItemsController::index() - APP/Controller/ItemsController.php, line 75
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