예제 #1
0
 /**
  * Index view for products
  *
  *@return view
  */
 function getIndex()
 {
     $vendorID = Session::get('vendor_id');
     $products = ProductModel::getProducts($vendorID);
     $productCount = ProductModel::totalVendorProducts($vendorID);
     return View::make('product.index')->with('id', $vendorID)->with('products', $products)->with('productCount', $productCount);
 }