Example #1
0
 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);
 }