public function listAction() { if (!$this->_helper->acl('Admin')) { return $this->_helper->redirectCommon('gotoLogin'); } $this->view->categorySelect = $this->_catalogModel->getForm('catalogCategorySelect'); $this->view->categorySelect->populate($this->getRequest()->getPost()); $this->view->categoryId = $this->_getParam('categoryId'); if ($this->_getParam('categoryId')) { $this->view->products = $this->_catalogModel->getProductsByCategory((int) $this->_getParam('categoryId'), null, null, false); } }