Notice (8): Undefined index: ItemCategory [APP/Controller/ProductsController.php, line 65]Code Context
$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' => null,
'name' => 'pneumatic cylinder',
'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' => '2021-09-10 17:30:15'
)
),
(int) 1 => array(
'ItemCategory' => array(
'id' => '613b964f-3280-4f2c-a67c-449b67352bfa',
'parent_cat_id' => null,
'name' => 'pneumatic valve',
'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' => '2021-09-10 17:30:55'
)
),
(int) 2 => array(
'ItemCategory' => array(
'id' => '613b9664-b7dc-409b-b749-449667352bfa',
'parent_cat_id' => null,
'name' => 'fittings & accessories',
'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' => '2021-09-10 17:31:16'
)
),
(int) 3 => array(
'ItemCategory' => array(
'id' => '613b9699-32e4-44ad-a6b4-400767352bfa',
'parent_cat_id' => null,
'name' => 'rotary joints',
'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' => '2021-09-10 17:32:09',
'modified' => '2021-09-10 17:32:09'
)
),
(int) 4 => array(
'ItemCategory' => array(
'id' => '613b96da-39e0-491c-b3fc-45a767352bfa',
'parent_cat_id' => null,
'name' => 'frl units',
'priority' => '5',
'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:14',
'modified' => '2021-09-10 17:33:14'
)
),
(int) 5 => array(
'ItemCategory' => array(
'id' => '613b96f8-16b8-4259-85ad-478667352bfa',
'parent_cat_id' => null,
'name' => 'moisture separators',
'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' => '2021-09-10 17:33:44'
)
),
(int) 6 => array(
'ItemCategory' => array(
'id' => '6140e37f-4b98-4ee4-b9a3-42d467352bfa',
'parent_cat_id' => null,
'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'
)
)
)
$parant = array(
(int) 0 => array(
'ItemCategory' => array(
'id' => '613b9627-a214-4be2-89af-4f3767352bfa',
'parent_cat_id' => null,
'name' => 'pneumatic cylinder',
'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' => '2021-09-10 17:30:15',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 1 => array(
'ItemCategory' => array(
'id' => '613b964f-3280-4f2c-a67c-449b67352bfa',
'parent_cat_id' => null,
'name' => 'pneumatic valve',
'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' => '2021-09-10 17:30:55',
'child' => array(
[maximum depth reached]
),
'sizeof' => (int) 5
)
),
(int) 2 => array(
'ItemCategory' => array(
'id' => '613b9664-b7dc-409b-b749-449667352bfa',
'parent_cat_id' => null,
'name' => 'fittings & accessories',
'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' => '2021-09-10 17:31:16',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 3 => array(
'ItemCategory' => array(
'id' => '613b9699-32e4-44ad-a6b4-400767352bfa',
'parent_cat_id' => null,
'name' => 'rotary joints',
'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' => '2021-09-10 17:32:09',
'modified' => '2021-09-10 17:32:09',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 4 => array(
'ItemCategory' => array(
'id' => '613b96da-39e0-491c-b3fc-45a767352bfa',
'parent_cat_id' => null,
'name' => 'frl units',
'priority' => '5',
'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:14',
'modified' => '2021-09-10 17:33:14',
'child' => array(
[maximum depth reached]
),
'sizeof' => (int) 6
)
),
(int) 5 => array(
'ItemCategory' => array(
'id' => '613b96f8-16b8-4259-85ad-478667352bfa',
'parent_cat_id' => null,
'name' => 'moisture separators',
'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' => '2021-09-10 17:33:44',
'child' => array(
[maximum depth reached]
),
'sizeof' => (int) 3
)
),
(int) 6 => array(
'ItemCategory' => array(
'id' => '6140e37f-4b98-4ee4-b9a3-42d467352bfa',
'parent_cat_id' => null,
'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
)
)
)
$cat = array(
'ItemCategory' => array(
'id' => '6140e37f-4b98-4ee4-b9a3-42d467352bfa',
'parent_cat_id' => null,
'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(),
'sizeof' => (int) 0
)
)
$key = (int) 6
$childern = array()
$numUsers = (int) 0
$exist = array()
ProductsController::category() - APP/Controller/ProductsController.php, line 65
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 65]Code Context
$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' => null,
'name' => 'pneumatic cylinder',
'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' => '2021-09-10 17:30:15'
)
),
(int) 1 => array(
'ItemCategory' => array(
'id' => '613b964f-3280-4f2c-a67c-449b67352bfa',
'parent_cat_id' => null,
'name' => 'pneumatic valve',
'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' => '2021-09-10 17:30:55'
)
),
(int) 2 => array(
'ItemCategory' => array(
'id' => '613b9664-b7dc-409b-b749-449667352bfa',
'parent_cat_id' => null,
'name' => 'fittings & accessories',
'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' => '2021-09-10 17:31:16'
)
),
(int) 3 => array(
'ItemCategory' => array(
'id' => '613b9699-32e4-44ad-a6b4-400767352bfa',
'parent_cat_id' => null,
'name' => 'rotary joints',
'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' => '2021-09-10 17:32:09',
'modified' => '2021-09-10 17:32:09'
)
),
(int) 4 => array(
'ItemCategory' => array(
'id' => '613b96da-39e0-491c-b3fc-45a767352bfa',
'parent_cat_id' => null,
'name' => 'frl units',
'priority' => '5',
'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:14',
'modified' => '2021-09-10 17:33:14'
)
),
(int) 5 => array(
'ItemCategory' => array(
'id' => '613b96f8-16b8-4259-85ad-478667352bfa',
'parent_cat_id' => null,
'name' => 'moisture separators',
'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' => '2021-09-10 17:33:44'
)
),
(int) 6 => array(
'ItemCategory' => array(
'id' => '6140e37f-4b98-4ee4-b9a3-42d467352bfa',
'parent_cat_id' => null,
'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'
)
)
)
$parant = array(
(int) 0 => array(
'ItemCategory' => array(
'id' => '613b9627-a214-4be2-89af-4f3767352bfa',
'parent_cat_id' => null,
'name' => 'pneumatic cylinder',
'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' => '2021-09-10 17:30:15',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 1 => array(
'ItemCategory' => array(
'id' => '613b964f-3280-4f2c-a67c-449b67352bfa',
'parent_cat_id' => null,
'name' => 'pneumatic valve',
'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' => '2021-09-10 17:30:55',
'child' => array(
[maximum depth reached]
),
'sizeof' => (int) 5
)
),
(int) 2 => array(
'ItemCategory' => array(
'id' => '613b9664-b7dc-409b-b749-449667352bfa',
'parent_cat_id' => null,
'name' => 'fittings & accessories',
'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' => '2021-09-10 17:31:16',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 3 => array(
'ItemCategory' => array(
'id' => '613b9699-32e4-44ad-a6b4-400767352bfa',
'parent_cat_id' => null,
'name' => 'rotary joints',
'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' => '2021-09-10 17:32:09',
'modified' => '2021-09-10 17:32:09',
'child' => array([maximum depth reached]),
'sizeof' => (int) 0
)
),
(int) 4 => array(
'ItemCategory' => array(
'id' => '613b96da-39e0-491c-b3fc-45a767352bfa',
'parent_cat_id' => null,
'name' => 'frl units',
'priority' => '5',
'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:14',
'modified' => '2021-09-10 17:33:14',
'child' => array(
[maximum depth reached]
),
'sizeof' => (int) 6
)
),
(int) 5 => array(
'ItemCategory' => array(
'id' => '613b96f8-16b8-4259-85ad-478667352bfa',
'parent_cat_id' => null,
'name' => 'moisture separators',
'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' => '2021-09-10 17:33:44',
'child' => array(
[maximum depth reached]
),
'sizeof' => (int) 3
)
),
(int) 6 => array(
'ItemCategory' => array(
'id' => '6140e37f-4b98-4ee4-b9a3-42d467352bfa',
'parent_cat_id' => null,
'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
)
)
)
$cat = array(
'ItemCategory' => array(
'id' => '6140e37f-4b98-4ee4-b9a3-42d467352bfa',
'parent_cat_id' => null,
'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(),
'sizeof' => (int) 0
)
)
$key = (int) 6
$childern = array()
$numUsers = (int) 0
$exist = array()
ProductsController::category() - APP/Controller/ProductsController.php, line 65
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