コード例 #1
0
 public function changeOrder($category)
 {
     $this->ViewTemplate['title'] .= ' - ' . $category;
     $catalogView = ['catalog' => Catalog::getProducts(0, $category), 'category' => $category];
     $view = view('template', $this->ViewTemplate)->nest('content', 'catalog', $catalogView);
     $cookie = Cookie::forever('order', Request::input('order'));
     return Response::make($view)->withCookie($cookie);
 }
コード例 #2
0
 public function showMore()
 {
     if (!Request::ajax()) {
         return Redirect::to('/');
     }
     $startlimit = Request::input('startLimit');
     $category = Request::input('category');
     $proucts = Catalog::getProducts($startlimit, $category);
     return view('ajax/ajaxShowMore', ['products' => $proucts]);
 }