Ejemplo n.º 1
0
 public function __construct($title = '')
 {
     parent::__construct($title);
     if (empty($this->SPage)) {
         redirectTo('/');
     }
     if (!Db_Product::urlIsValid($this->SPage)) {
         redirectTo('/');
     }
     $Product = Db_Product::getFullDetails($this->SPage);
     $this->TPL->assign('Product', $Product);
     $categories = Db_Category::getAllObjectsWithTrans();
     $this->TPL->assign('categories', $categories);
     $colors = Db_Color::getAllWithTrans();
     $this->TPL->assign('colors', $colors);
     $related = Db_Product::getRandomProducts();
     $this->TPL->assign('related', $related);
     $featured = Db_Product::getRandomProducts(12);
     $this->TPL->assign('featured', $featured);
 }