/** * 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(); }
/** * 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)); }