public function index()
 {
     $this->ViewTemplate['index'] = true;
     $recommended = Catalog::getRecommended(0);
     $view = view('template', $this->ViewTemplate)->nest('content', 'home', ['recommended' => $recommended]);
     Cookie::queue(Cookie::make('dayProduct', '1', 4800));
     return $view;
 }
 public function showMoreRecommended()
 {
     if (!Request::ajax()) {
         return Redirect::to('/');
     }
     $startlimit = Request::input('startLimit');
     $category = Request::input('category');
     $proucts = Catalog::getRecommended($startlimit);
     return view('ajax/ajaxShowMore', ['products' => $proucts]);
 }