Beispiel #1
0
 /**
  * The index handler.
  * 
  * @access public
  * @return string The HTML code.
  */
 public function index()
 {
     $Product = new Product();
     $Category = new Product_Category();
     foreach ($Category->findList(array(), 'Position asc', 0, 1) as $Category) {
     }
     $params = array();
     $c = Request::get('c', $Category->Id);
     $params[] = 'CategoryId = ' . $c;
     $_GET['c'] = $c;
     $this->getView()->set('Products', $Product->findList($params, 'Position asc'));
     return $this->getView()->render();
 }
Beispiel #2
0
 /**
  * The index handler.
  * 
  * @access public
  * @return string The HTML code.
  */
 public function index()
 {
     $Category = new Product_Category();
     $this->getView()->set('Categories', $Category->findList(array(), 'Position asc'));
     return $this->getView()->render();
 }