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 = '53'
$arr_user = null
$int_dealerId = null
$arr_pcat = array(
'Category' => array(
'id' => '53',
'category_id' => '52',
'category_lbl_en' => 'Stoves & Systems',
'category_lbl_fr' => 'Systèmes et poêles',
'category_url' => '/products/stoves/systems',
'categoryThumb' => '',
'categoryThumbTab' => null,
'categoryThumbMo' => null,
'categoryThumbAlt' => '',
'categoryBanner' => '',
'categoryBannerTablet' => '',
'categoryBannerMobile' => '',
'categoryBannerAlt' => '',
'categoryImage' => '',
'categoryImageTablet' => null,
'categoryImageAlt' => null,
'categoryImageSpecs' => '',
'categoryImageSpecsAlt' => '',
'sorting' => '1',
'created' => '2015-03-19 11:30:25',
'modified' => '2021-01-20 18:21:30'
),
'ParentCategory' => array(
'id' => '52',
'category_id' => '0',
'category_lbl_en' => 'Jetboil',
'category_lbl_fr' => 'Systèmes de cuisine Jetboil',
'category_url' => '/products/stoves',
'categoryThumb' => '/assets/categories/thumbs/Jetboil_Home_Menu_400x300.jpg',
'categoryThumbTab' => null,
'categoryThumbMo' => null,
'categoryThumbAlt' => 'Jetboil camping stoves reduce the amount of fuel and time it takes to enjoy eating outdoors',
'categoryBanner' => '/assets/categories/banners/Jetboil-Banner-1920x400-rev.jpg',
'categoryBannerTablet' => '/assets/categories/banners/Jetboil-Banner-768x300-rev.jpg',
'categoryBannerMobile' => '/assets/categories/banners/Jetboil-Banner-480x200-rev.jpg',
'categoryBannerAlt' => 'a young couple sit together in their Eureka tent and enjoy a hot drink from their Jetboil stove.',
'categoryImage' => '/assets/categories/thumbs/400x300Jetboil2Menu.jpg',
'categoryImageTablet' => null,
'categoryImageAlt' => 'Jetboil camping stoves reduce the amount of fuel and time it takes to enjoy eating outdoors',
'categoryImageSpecs' => '',
'categoryImageSpecsAlt' => '',
'sorting' => '8',
'created' => '2014-03-12 13:38:34',
'modified' => '2021-12-09 19:50:13'
),
'ChildCategory' => array()
)
$arr_sel_cat = '53'
$arr_products = array()
$conditions = array(
'Product.prd_viewable' => (int) 1,
'Product.category_id' => '53'
)
$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