public function action_dashboard() { if (!Sentry::user()->has_access('ajax_dashboard')) { Session::set_flash('error', 'You do not have right acces there'); Response::redirect('/'); } $data['json'] = Model_Ajax::dashboard(Input::post('values'), $this->languages); $this->template->content = View::forge('ajax/view', $data); }