Notice (8): Undefined index: ItemCategory [APP/Controller/ProductsController.php, line 66]Code Context // pr($parant);
$exist = $this->ItemCategory->findById($id);
$products = $this->Item->find('all',array('conditions'=>array('Item.item_category_id'=>$exist['ItemCategory']['id']),'order'=>'Item.created DESC'));
$id = 'index.html'
$main_category = array(
(int) 0 => array(
'ItemCategory' => array(
'id' => '613b9627-a214-4be2-89af-4f3767352bfa',
'parent_cat_id' => '',
'name' => 'lifting',
'priority' => '1',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:30:15',
'modified' => '2023-05-13 05:50:42'
)
),
(int) 1 => array(
'ItemCategory' => array(
'id' => '613b964f-3280-4f2c-a67c-449b67352bfa',
'parent_cat_id' => '',
'name' => 'cargo control & lashing',
'priority' => '2',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:30:55',
'modified' => '2023-05-13 05:51:36'
)
),
(int) 2 => array(
'ItemCategory' => array(
'id' => '613b9664-b7dc-409b-b749-449667352bfa',
'parent_cat_id' => '',
'name' => 'safety',
'priority' => '3',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:31:16',
'modified' => '2023-05-13 05:55:57'
)
),
(int) 3 => array(
'ItemCategory' => array(
'id' => '613b96f8-16b8-4259-85ad-478667352bfa',
'parent_cat_id' => '',
'name' => 'hoists',
'priority' => '6',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:33:44',
'modified' => '2023-05-13 05:56:20'
)
),
(int) 4 => array(
'ItemCategory' => array(
'id' => '6140e37f-4b98-4ee4-b9a3-42d467352bfa',
'parent_cat_id' => '',
'name' => 'gallery',
'priority' => '3',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-14 18:01:35',
'modified' => '2021-09-14 18:01:35'
)
),
(int) 5 => array(
'ItemCategory' => array(
'id' => '6220d9e4-db10-4f65-a0f7-4a9f67352bfa',
'parent_cat_id' => '',
'name' => 'yarn & technical textile',
'priority' => '4',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2022-03-03 15:08:20',
'modified' => '2023-05-13 06:00:07'
)
)
)
$parant = array(
(int) 0 => array(
'ItemCategory' => array(
'id' => '613b9627-a214-4be2-89af-4f3767352bfa',
'parent_cat_id' => '',
'name' => 'lifting',
'priority' => '1',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:30:15',
'modified' => '2023-05-13 05:50:42',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 1 => array(
'ItemCategory' => array(
'id' => '613b964f-3280-4f2c-a67c-449b67352bfa',
'parent_cat_id' => '',
'name' => 'cargo control & lashing',
'priority' => '2',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:30:55',
'modified' => '2023-05-13 05:51:36',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 2 => array(
'ItemCategory' => array(
'id' => '613b9664-b7dc-409b-b749-449667352bfa',
'parent_cat_id' => '',
'name' => 'safety',
'priority' => '3',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:31:16',
'modified' => '2023-05-13 05:55:57',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 3 => array(
'ItemCategory' => array(
'id' => '613b96f8-16b8-4259-85ad-478667352bfa',
'parent_cat_id' => '',
'name' => 'hoists',
'priority' => '6',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:33:44',
'modified' => '2023-05-13 05:56:20',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 4 => array(
'ItemCategory' => array(
'id' => '6140e37f-4b98-4ee4-b9a3-42d467352bfa',
'parent_cat_id' => '',
'name' => 'gallery',
'priority' => '3',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-14 18:01:35',
'modified' => '2021-09-14 18:01:35',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 5 => array(
'ItemCategory' => array(
'id' => '6220d9e4-db10-4f65-a0f7-4a9f67352bfa',
'parent_cat_id' => '',
'name' => 'yarn & technical textile',
'priority' => '4',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2022-03-03 15:08:20',
'modified' => '2023-05-13 06:00:07',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
)
)
$cat = array(
'ItemCategory' => array(
'id' => '6220d9e4-db10-4f65-a0f7-4a9f67352bfa',
'parent_cat_id' => '',
'name' => 'yarn & technical textile',
'priority' => '4',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2022-03-03 15:08:20',
'modified' => '2023-05-13 06:00:07',
'child' => array(),
'sizeof' => (int) 0
)
)
$key = (int) 5
$childern = array()
$numUsers = (int) 0
$exist = array()
ProductsController::category() - APP/Controller/ProductsController.php, line 66
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117
Notice (8): Trying to access array offset on value of type null [APP/Controller/ProductsController.php, line 66]Code Context // pr($parant);
$exist = $this->ItemCategory->findById($id);
$products = $this->Item->find('all',array('conditions'=>array('Item.item_category_id'=>$exist['ItemCategory']['id']),'order'=>'Item.created DESC'));
$id = 'index.html'
$main_category = array(
(int) 0 => array(
'ItemCategory' => array(
'id' => '613b9627-a214-4be2-89af-4f3767352bfa',
'parent_cat_id' => '',
'name' => 'lifting',
'priority' => '1',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:30:15',
'modified' => '2023-05-13 05:50:42'
)
),
(int) 1 => array(
'ItemCategory' => array(
'id' => '613b964f-3280-4f2c-a67c-449b67352bfa',
'parent_cat_id' => '',
'name' => 'cargo control & lashing',
'priority' => '2',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:30:55',
'modified' => '2023-05-13 05:51:36'
)
),
(int) 2 => array(
'ItemCategory' => array(
'id' => '613b9664-b7dc-409b-b749-449667352bfa',
'parent_cat_id' => '',
'name' => 'safety',
'priority' => '3',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:31:16',
'modified' => '2023-05-13 05:55:57'
)
),
(int) 3 => array(
'ItemCategory' => array(
'id' => '613b96f8-16b8-4259-85ad-478667352bfa',
'parent_cat_id' => '',
'name' => 'hoists',
'priority' => '6',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:33:44',
'modified' => '2023-05-13 05:56:20'
)
),
(int) 4 => array(
'ItemCategory' => array(
'id' => '6140e37f-4b98-4ee4-b9a3-42d467352bfa',
'parent_cat_id' => '',
'name' => 'gallery',
'priority' => '3',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-14 18:01:35',
'modified' => '2021-09-14 18:01:35'
)
),
(int) 5 => array(
'ItemCategory' => array(
'id' => '6220d9e4-db10-4f65-a0f7-4a9f67352bfa',
'parent_cat_id' => '',
'name' => 'yarn & technical textile',
'priority' => '4',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2022-03-03 15:08:20',
'modified' => '2023-05-13 06:00:07'
)
)
)
$parant = array(
(int) 0 => array(
'ItemCategory' => array(
'id' => '613b9627-a214-4be2-89af-4f3767352bfa',
'parent_cat_id' => '',
'name' => 'lifting',
'priority' => '1',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:30:15',
'modified' => '2023-05-13 05:50:42',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 1 => array(
'ItemCategory' => array(
'id' => '613b964f-3280-4f2c-a67c-449b67352bfa',
'parent_cat_id' => '',
'name' => 'cargo control & lashing',
'priority' => '2',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:30:55',
'modified' => '2023-05-13 05:51:36',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 2 => array(
'ItemCategory' => array(
'id' => '613b9664-b7dc-409b-b749-449667352bfa',
'parent_cat_id' => '',
'name' => 'safety',
'priority' => '3',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:31:16',
'modified' => '2023-05-13 05:55:57',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 3 => array(
'ItemCategory' => array(
'id' => '613b96f8-16b8-4259-85ad-478667352bfa',
'parent_cat_id' => '',
'name' => 'hoists',
'priority' => '6',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-10 17:33:44',
'modified' => '2023-05-13 05:56:20',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 4 => array(
'ItemCategory' => array(
'id' => '6140e37f-4b98-4ee4-b9a3-42d467352bfa',
'parent_cat_id' => '',
'name' => 'gallery',
'priority' => '3',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2021-09-14 18:01:35',
'modified' => '2021-09-14 18:01:35',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 5 => array(
'ItemCategory' => array(
'id' => '6220d9e4-db10-4f65-a0f7-4a9f67352bfa',
'parent_cat_id' => '',
'name' => 'yarn & technical textile',
'priority' => '4',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2022-03-03 15:08:20',
'modified' => '2023-05-13 06:00:07',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
)
)
$cat = array(
'ItemCategory' => array(
'id' => '6220d9e4-db10-4f65-a0f7-4a9f67352bfa',
'parent_cat_id' => '',
'name' => 'yarn & technical textile',
'priority' => '4',
'desc' => null,
'long_description' => null,
'tags' => null,
'meta' => null,
'permalink' => null,
'file_name' => null,
'file_dir' => null,
'addon_category' => '0',
'is_active' => '0',
'created' => '2022-03-03 15:08:20',
'modified' => '2023-05-13 06:00:07',
'child' => array(),
'sizeof' => (int) 0
)
)
$key = (int) 5
$childern = array()
$numUsers = (int) 0
$exist = array()
ProductsController::category() - APP/Controller/ProductsController.php, line 66
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117