Example #1
0
 /**
  * The index handler.
  * 
  * @access public
  * @return string The HTML code.
  */
 public function index()
 {
     $Brand = new Product_Brand();
     $this->getView()->set('Brands', $Brand->findShortList(array(), 'Name asc'));
     return $this->getView()->render();
 }
Example #2
0
 /**
  * The function returns current product Brand.
  * 
  * @access public
  * @return object The Brand.
  */
 public function getBrand()
 {
     $Brand = new Product_Brand();
     return $Brand->findItem(array('Id = ' . $this->Brand));
 }