[eluser]welzai[/eluser]
hi guys, i am needing from help, i don't work call one function of same controller.
i call one function e no have problem, but in last line i try redirect for other function e same controller e don't work...
somebody know what problem
below is my function
Code:
function Inserir()
{
$dados = array();
$dados['IdFinanceira'] = $this->Proximo_codigo('IdFinanceira','Financeira');
if ($this->input->post('Nome'))
$dados['Nome'] = $this->input->post('Nome');
$this->Financeira->Inserir($dados);//function of model work.
$this->Listar;// function of same controller it don't work
}
the function Listar();
Code:
function Listar(){
$this->table->set_heading('Codigo', 'Nome','Ações');
$this->table->set_template($this->layoutTabela);
$financeiras = $this->Financeira->ListarTodos();
foreach ($financeiras as $financeira){
$this->table->add_row($financeira->IdFinanceira,$financeira->Nome,'<a >IdFinanceira.'> <img src="/Emprestimo/imagem/Adicioonar.png" align = "center" border="0" title="Editar Perfil" /></a> <a >IdFinanceira.'> <img src="/Emprestimo/imagem/Deletar.png" align = "center" border="0" title="Editar Perfil" /></a>');
}
$data['tabela'] = $this->table->generate();
$configuracao['tipoAcao'] = 'Listar';
$configuracao['pagina'] = 'Financeira_ctl';
$this->CarregaTemplate('listar',$data,$configuracao);
}