public function displayMain() { global $smarty; $attributes = Product::getAttributeAndGrop($this->entity->id); $feedbacks = Feedback::feedbackWithProdict($this->entity->id); $brand = $this->entity->id_brand > 0 ? new Brand($this->entity->id_brand) : false; $smarty->assign(array('feedback' => $feedbacks, 'entity' => $this->entity, 'images' => $this->entity->getImages(), 'groups' => Product::getAttributeAndGrop($this->entity->id), 'brand' => $brand, 'products' => $this->entity->getAlsoProduct())); return $smarty->fetch('product.tpl'); }