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 = '39'
$arr_user = null
$int_dealerId = null
$arr_pcat = array(
'Category' => array(
'id' => '39',
'category_id' => '7',
'category_lbl_en' => 'Junior Bags',
'category_lbl_fr' => 'Sacs junior',
'category_url' => '/products/sleeping_bags/juniorbags',
'categoryThumb' => null,
'categoryThumbTab' => null,
'categoryThumbMo' => null,
'categoryThumbAlt' => null,
'categoryBanner' => null,
'categoryBannerTablet' => '',
'categoryBannerMobile' => '',
'categoryBannerAlt' => null,
'categoryImage' => null,
'categoryImageTablet' => null,
'categoryImageAlt' => null,
'categoryImageSpecs' => '',
'categoryImageSpecsAlt' => '',
'sorting' => '5',
'created' => '2010-08-18 13:21:09',
'modified' => '2010-08-19 16:20:17'
),
'ParentCategory' => array(
'id' => null,
'category_id' => null,
'category_lbl_en' => null,
'category_lbl_fr' => null,
'category_url' => null,
'categoryThumb' => null,
'categoryThumbTab' => null,
'categoryThumbMo' => null,
'categoryThumbAlt' => null,
'categoryBanner' => null,
'categoryBannerTablet' => null,
'categoryBannerMobile' => null,
'categoryBannerAlt' => null,
'categoryImage' => null,
'categoryImageTablet' => null,
'categoryImageAlt' => null,
'categoryImageSpecs' => null,
'categoryImageSpecsAlt' => null,
'sorting' => null,
'created' => null,
'modified' => null
),
'ChildCategory' => array()
)
$arr_sel_cat = '39'
$arr_products = array()
$conditions = array(
'Product.prd_viewable' => (int) 1,
'Product.category_id' => '39'
)
$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