I would like to know if you have the possibility to change a parameter of the url with codeigniter. I have a created function called edit and in it I pass the client id to be edited, but instead of the id that is the parameter, I would like the client name to be shown, is there a possibility?
Follow code for analysis:
public function editar($id)
{
$data = array();
$data['NOMECLIENTE'] = '';
$data['IDCLIENTE'] = '';
$cliente = $this->ClienteM->get(array('id_cliente' => $id), TRUE);
if ($cliente) {
$data['IDCLIENTE'] = $cliente->id_cliente;
$data['NOMECLIENTE'] = $cliente->nome_cliente;
}
setURL($data,'cliente');
$this->parser->parse('painel/cliente_form', $data);
}