Code Context //loop through the arr_sel_cat and query for all products in the category
$arr_products = array();
foreach($arr_sel_cat as $sel_cat){
$cat_id = '12'
$arr_user = null
$int_dealerId = null
$arr_pcat = array(
'Category' => array(
'id' => '12',
'category_id' => '4',
'category_lbl_en' => '4 Person',
'category_lbl_fr' => '4 personnes',
'category_url' => '/products/tents/4_person',
'categoryThumb' => '',
'categoryThumbTab' => null,
'categoryThumbMo' => null,
'categoryThumbAlt' => '',
'categoryBanner' => '/assets/categories/banners/3sizebanners/4-Person-Tents-Banner-Dual-1920x400-rev.jpg',
'categoryBannerTablet' => '/assets/categories/banners/3sizebanners/4-Person-Tents-Banner-Dual-768x300.jpg',
'categoryBannerMobile' => '/assets/categories/banners/3sizebanners/4-Person-Tents-Banner-Dual-480x200.jpg',
'categoryBannerAlt' => '4 person tents',
'categoryImage' => '',
'categoryImageTablet' => null,
'categoryImageAlt' => null,
'categoryImageSpecs' => '',
'categoryImageSpecsAlt' => '',
'sorting' => '4',
'created' => '2009-11-20 11:26:52',
'modified' => '2021-03-01 17:04:55'
),
'ParentCategory' => array(
'id' => '4',
'category_id' => '0',
'category_lbl_en' => 'Tents',
'category_lbl_fr' => 'Tentes',
'category_url' => '/products/tents',
'categoryThumb' => '/assets/categories/thumbs/Tents_Home_Menu_400x300.jpg',
'categoryThumbTab' => null,
'categoryThumbMo' => null,
'categoryThumbAlt' => 'photo of couple sitting in a Eureka tent enjoying a hot drink',
'categoryBanner' => '/assets/categories/banners/3sizebanners/Tents-Banner-Dual-1920x400.jpg',
'categoryBannerTablet' => '/assets/categories/banners/3sizebanners/Tents-Banner-Dual-768x300.jpg',
'categoryBannerMobile' => '/assets/categories/banners/3sizebanners/Tents-Banner-Dual-480x200.jpg',
'categoryBannerAlt' => 'Eureka Tents make exploring the outdoor fun for everyone',
'categoryImage' => '/assets/categories/thumbs/400x300TentMenu1.jpg',
'categoryImageTablet' => null,
'categoryImageAlt' => 'Young couple sitting in a Eureka tent enjoying some coffee',
'categoryImageSpecs' => '/assets/categories/defaults/Eureka_graphic_detail_default.jpg',
'categoryImageSpecsAlt' => 'a photo of a rocky gulch with the morning sun shining through the trees',
'sorting' => '1',
'created' => '2009-11-20 11:05:18',
'modified' => '2021-03-01 17:50:22'
),
'ChildCategory' => array()
)
$arr_sel_cat = '12'
$arr_products = array()
$conditions = array(
'Product.prd_viewable' => (int) 1,
'Product.category_id' => '12'
)
$group = array(
(int) 0 => 'Product.category_id'
)
$order = array(
'Product.prd_promote' => 'desc',
'Product.prd_new' => 'desc',
'Product.prd_model_name' => 'asc'
)
$fields = array(
(int) 0 => 'Product.id',
(int) 1 => 'Product.category_id',
(int) 2 => 'Product.prd_model_name',
(int) 3 => 'Category.category_lbl_en',
(int) 4 => 'Category.category_lbl_fr'
)
ProductsController::showCategory() - APP/Controller/ProductsController.php, line 737
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - ROOT/index.php, line 119