Exemplo n.º 1
0
 public function get_events()
 {
     $events = GroupEvent::order_by('created_at', 'desc')->paginate(Config::get('app.paginator_count'));
     return View::make('dashboard.events')->with('title', HtmlHelpers::name('manage_events'))->with('active', 'manage_events')->with('events', $events);
 }
Exemplo n.º 2
0
 public function get_index()
 {
     $events = GroupEvent::order_by('created_at', 'desc')->paginate(Config::get('app.paginator_count'));
     $count = ceil(count($events->results) / 2);
     return View::make('events.index')->with('title', HtmlHelpers::name('events'))->with('nav', 'events')->with('events', $events)->with('count', $count);
 }