public function actionProduct() { $obj = new ProductDB(); if (!$obj->getProduct($this->request->id)) { $this->notFound(); } $this->title = $obj->title; //$this->meta_desc = $obj->meta_desc; //$this->meta_key= $obj->meta_key; $head = $this->getHead(array("/css/main.css")); $head->js = array("/js/main.js", "/js/gallery.js"); $product = new Product(); $hornav = $this->getHornav(); $hornav->addData($obj->section, URL::get("section", "", array("id" => $obj->section_id))); $hornav->addData($obj->category, URL::get("category", "", array("id" => $obj->category_id))); $hornav->addData($obj->title); $product->hornav = $hornav; $product->title = $obj->title; $product->img = $obj->img; $product->available = $obj->available; $product->id = $obj->id; $product->brand = $obj->brand; $product->brand_img = Config::DIR_IMG_BRAND . $obj->brand_img; $product->price = $obj->price; $product->full_text = $obj->full_text; $product->video = $obj->video; $product->foto = ImgDB::getImgOnID($this->request->id); $product->others = ProductDB::getOthers($this->request->id); $this->render($head, $product); }