Notice (8): Undefined index: Product [APP/Controller/ProductsController.php, line 21]Code Contextif ($slug!=='all') {
$item = $this->Product->find('first', array('conditions'=>array('slug'=>$slug), 'order'=>'Product.order'));
$products = $this->Product->find('all', array('conditions'=>array('parent_id'=>$item['Product']['id']), 'order'=>'Product.order'));
$slug = null $item = array()ProductsController::index() - APP/Controller/ProductsController.php, line 21 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
Notice (8): Undefined index: Product [APP/Controller/ProductsController.php, line 22]Code Context$item = $this->Product->find('first', array('conditions'=>array('slug'=>$slug), 'order'=>'Product.order'));
$products = $this->Product->find('all', array('conditions'=>array('parent_id'=>$item['Product']['id']), 'order'=>'Product.order'));
$this->set('title_for_layout', $item['Product']['title']);
$slug = null $item = array() $products = array( (int) 0 => array( 'Product' => array( 'id' => '27', 'parent_id' => null, 'lft' => '649', 'rght' => '802', 'title' => 'Accessories', 'slug' => 'accessories', 'description' => '', 'image' => '/app/webroot/files/images/products/accesories.jpg', 'order' => '0', 'element' => '0', 'created' => '2016-09-03 02:37:58', 'modified' => '2016-09-07 09:32:36', 'children' => '4' ) ), (int) 1 => array( 'Product' => array( 'id' => '16', 'parent_id' => null, 'lft' => '1', 'rght' => '624', 'title' => 'Aluminum Profiles', 'slug' => 'aluminum-profiles', 'description' => '', 'image' => '/app/webroot/files/images/products/aluminium%20profiles.jpg', 'order' => '1', 'element' => '0', 'created' => '2016-09-01 11:27:20', 'modified' => '2016-09-07 09:32:55', 'children' => '23' ) ), (int) 2 => array( 'Product' => array( 'id' => '188', 'parent_id' => null, 'lft' => '803', 'rght' => '812', 'title' => 'Aluminum Sheets & Chequred Plate', 'slug' => 'aluminum-sheets-chequred-plate', 'description' => '', 'image' => '/app/webroot/files/images/products/Aluminium-sheets1.jpg', 'order' => '2', 'element' => '0', 'created' => '2016-09-06 01:18:48', 'modified' => '2016-09-08 01:11:04', 'children' => '4' ) ), (int) 3 => array( 'Product' => array( 'id' => '22', 'parent_id' => null, 'lft' => '641', 'rght' => '648', 'title' => 'HPL Sheets', 'slug' => 'hpl-sheets', 'description' => '', 'image' => '/app/webroot/files/images/products/HPL-Sheets.jpg', 'order' => '3', 'element' => '0', 'created' => '2016-09-01 11:30:49', 'modified' => '2016-09-08 06:18:36', 'children' => '3' ) ), (int) 4 => array( 'Product' => array( 'id' => '17', 'parent_id' => null, 'lft' => '625', 'rght' => '628', 'title' => 'Gaskets', 'slug' => 'gaskets', 'description' => '', 'image' => '/app/webroot/files/images/products/gas%20kits.jpg', 'order' => '4', 'element' => '0', 'created' => '2016-09-01 11:27:44', 'modified' => '2016-09-07 09:34:09', 'children' => '1' ) ), (int) 5 => array( 'Product' => array( 'id' => '20', 'parent_id' => null, 'lft' => '629', 'rght' => '640', 'title' => 'Amplimesh Grill', 'slug' => 'amplimesh-grill', 'description' => '', 'image' => '/app/webroot/files/images/products/amplimesh%20grills.jpg', 'order' => '5', 'element' => '0', 'created' => '2016-09-01 11:29:20', 'modified' => '2016-09-08 06:19:03', 'children' => '1' ) ), (int) 6 => array( 'Product' => array( 'id' => '409', 'parent_id' => null, 'lft' => '845', 'rght' => '856', 'title' => 'UV-PVC High Glossed MDF 18mm', 'slug' => 'uv-pvc-high-glossed-mdf-18mm', 'description' => '', 'image' => '/app/webroot/files/images/products/UV-PVC%20High%20Glossed%20MDF%2018mm/05.jpg', 'order' => '6', 'element' => '0', 'created' => '2016-09-08 07:25:40', 'modified' => '2016-09-08 07:25:40', 'children' => '5' ) ), (int) 7 => array( 'Product' => array( 'id' => '374', 'parent_id' => null, 'lft' => '813', 'rght' => '822', 'title' => 'ALUMINIUM FACED M.D.F.(PLY)', 'slug' => 'aluminium-faced-m-d-f-ply', 'description' => '', 'image' => '/app/webroot/files/images/products/ALUMINIUM%20FACED%20M.D.F.(PLY)/rsz_dsc_0041.jpg', 'order' => '7', 'element' => '0', 'created' => '2016-09-08 01:19:33', 'modified' => '2016-09-22 01:46:22', 'children' => '4' ) ), (int) 8 => array( 'Product' => array( 'id' => '375', 'parent_id' => null, 'lft' => '823', 'rght' => '830', 'title' => 'ALUMINIUM COMPOSITE PANEL ', 'slug' => 'aluminium-composite-panel', 'description' => '', 'image' => '/app/webroot/files/images/products/ALUMINIUM%20COMPOSITE%20PANEL/02.jpg', 'order' => '8', 'element' => '0', 'created' => '2016-09-08 01:20:06', 'modified' => '2016-09-08 05:56:52', 'children' => '3' ) ), (int) 9 => array( 'Product' => array( 'id' => '376', 'parent_id' => null, 'lft' => '831', 'rght' => '844', 'title' => 'WOODEN ALUMINIUM POWDER COAT COLOUR SHADOWS', 'slug' => 'wooden-aluminium-powder-coat-colour-shadows', 'description' => '', 'image' => '/app/webroot/files/images/products/WOODEN%20ALUMINIUM%20POWDER%20COAT%20COLOUR%20SHADOWS/01.jpg', 'order' => '9', 'element' => '0', 'created' => '2016-09-08 01:20:46', 'modified' => '2016-09-08 06:15:15', 'children' => '6' ) ) )ProductsController::index() - APP/Controller/ProductsController.php, line 22 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
Copyright © Al Musbah Aluminium Trading Co. L.L.C. All rights reserved. Designed by Website Designing