/** * Действие для отображения списка игроков */ public function action_index() { $data['players'] = \Model_Position::find('all', array('related' => 'players', 'where' => array(array('players.is_core_player', '=', 1)), 'order_by' => array('id' => 'ASC', 'players.player_name' => 'ASC'))); $this->template->page_title = 'Команда :: Основной состав'; $this->template->content = \View::forge('players/core/index', $data, FALSE); }
/** * Действие для отображения списка игроков */ public function action_index() { $data['players'] = \Model_Position::find('all', array('related' => 'players', 'order_by' => array('id' => 'ASC', 'players.player_name' => 'ASC'))); $this->template->content = \View::forge('players/index', $data); }