Esempio n. 1
0
 /**
  * @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;
 }
Esempio n. 2
0
 public function productsbycatidAction()
 {
     $categoryMapper = new Application_Model_Mapper_Category();
     $this->view->categories = $categoryMapper->getList();
 }