Esempio n. 1
0
 function getProductHome()
 {
     $productHome = new producthome();
     $productHome->where_related_product('active', 1);
     $productHome->where('productcat_id', $this->id);
     $productHome->order_by('position', 'asc');
     $productHome->get_iterated($this->numProductHomepage);
     return $productHome;
 }