Skip to content

Instantly share code, notes, and snippets.

@ryonagana
Last active August 9, 2019 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryonagana/7bd75ce847e15cc8fd87e4e5852589f9 to your computer and use it in GitHub Desktop.
Save ryonagana/7bd75ce847e15cc8fd87e4e5852589f9 to your computer and use it in GitHub Desktop.
public function adicionar_curso($processo_id){
$instituicao_id = $_SESSION['access_adm']['instituicao'];
//$processo_id = $_SESSION['access_adm']['processo'];
$cursos = $this->processoModel->listarCursosCadastradosEmProcesso($processo_id);
$processos = $this->processoModel->listarProcessos();
$this->form_validation->set_rules('processos', 'Processos', 'required|trim|is_numeric');
if($this->form_validation->run() == FALSE){
$this->ViewHeader("Candidatos - Listar Candidatos");
$this->Menu();
$this->_StartPage();
$this->Validation();
$this->load->view('backend/processo/form_adicionar_curso', array('cursos' => $cursos, 'processos' => $processos ));
$this->_ClosePage();
$this->ViewFooter();
}else {
$post = $this->input->post(NULL);
$this->processaCadastraCopia($processo_id, $post);
return;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment