public function get_index() { $this->data['section_bar_active'] = Lang::line('splashscreen::lang.Flash News')->get(ADM_LANG); $this->data['pagination'] = Splashscreen\Model\News::paginate(10); $this->data['news'] = $this->data['pagination']->results; if (Request::ajax()) { return View::make('splashscreen::backend.flashnews.partials.flash_news_tbody', $this->data); } return $this->theme->render('splashscreen::backend.flashnews.index', $this->data); }