Example #1
0
 public function getProducts()
 {
     if ($this->_products == null) {
         $productMapper = new Application_Model_Mapper_Product();
         $this->_products = $productMapper->getListByCategoryId($this->_id);
     }
     return $this->_products;
 }
Example #2
0
 public function allproductsAction()
 {
     $productMapper = new Application_Model_Mapper_Product();
     $this->view->products = $productMapper->getList();
 }