public function view() { if ($this->productLocation == 'page') { $cID = Page::getCurrentPage()->getCollectionID(); $p = VividProduct::getByCollectionID($cID); } else { $p = VividProduct::getByID($this->pID); } $this->set('p', $p); }
public function view() { if ($this->productLocation == 'page') { $cID = Page::getCurrentPage()->getCollectionID(); $p = VividProduct::getByCollectionID($cID); } else { $p = VividProduct::getByID($this->pID); } $this->set('p', $p); }