public function appreciation()
 {
     $appreciation_count = Appreciation::count();
     $page = ceil($appreciation_count / 4);
     $appreciations = Appreciation::paginate(4);
     return View::make('home.comedy.classic-case')->with(array('appreciations' => $appreciations, 'page' => $page, 'links' => $this->link()));
 }
Esempio n. 2
0
 public function appreciation()
 {
     $appreciations = Appreciation::paginate(10);
     return View::make('经典欣赏')->with('appreciations', $appreciation);
 }