public function newRun($request) { $groups_model = new GroupsModel(); $this->data['groups'] = $groups_model->getAll(); $this->view = 'edit'; $this->data['form_action'] = 'create'; }
public function indexRun($request) { $groups_model = new GroupsModel(); $this->data['groups'] = $groups_model->getAll(); }