/** * Admin account index * * @access public * @return Response */ public function action_index() { $users = Model_AdminUser::query()->get(); $this->template->subtitle = \View::forge('account/_parts/list_subtitle'); $this->set_title_and_breadcrumbs(term('admin.account.view', 'site.management')); $this->template->content = \View::forge('account/list', array('list' => $users)); }
protected function get_current_user($user_id) { return Model_AdminUser::query()->where('id', $user_id)->get_one(); }