/** * The index action. * * @access public * @return void */ public function action_index() { $labels = self::get_list_labels(); $profiles = \Model_Profile::query()->order_by('sort_order')->get(); $this->set_title_and_breadcrumbs(term('profile', 'site.setting')); $this->template->layout = 'wide'; $this->template->post_footer = \View::forge('profile/_parts/index_footer'); $this->template->content = \View::forge('profile/list', array('profiles' => $profiles, 'labels' => $labels)); }