/** * @return the $_category */ public function getCategory() { if (null === $this->_category) { $productMapper = new Application_Model_Mapper_Category(); $this->_category = $productMapper->find($this->_cid); } return $this->_category; }
public function productsbycatidAction() { $categoryMapper = new Application_Model_Mapper_Category(); $this->view->categories = $categoryMapper->getList(); }