function plist_action($id, $order) { $model = new UsersModel(); $pupils = $model->get_pupils($id, $order); $html = $this->render_template('application/view/templates/pupils.php', array('pupils' => $pupils)); return $html; }