[eluser]welzai[/eluser]
Hi guys,
I am with problem.
i already searched, here at forum, but don't work my problem about redirect,
the problem is.
I want after insert in db redirect for outer page.
I find one post here but, don't resolved my problem.
my code is below
insert function
Code:
function Inserir()
{
$dados = array();
//take next id of the table
$dados['IdFinanceira'] = $this->Proximo_codigo('IdFinanceira','Financeira');
if ($this->input->post('Nome'))
$dados['Nome'] = $this->input->post('Nome');
//insert function of model
$this->Financeira->Inserir($dados);
//redirect don't work this listar function is in same controller
redirect('/Financeira_ctl/Listar/', 'refresh');
}
now if i put redirect in begin of code work;
what should i to make ?