To edit the data of a person I have a button which when pressed takes that id and sends it not by ajax but directly to the controller with the id to make the validation and bring the data ...
What I want is for that data to show me in a modal window but with data sent directly from the php (codeigniter), normally it is used like this ...
if($answer)
{
$data = array('nombre' => $answer->nombre_personal,
'apellido' => $answer->apellido_personal)
$this->load->view(index,$data);
}
It happens that since the view is already loaded in funcion index
I can not reload it to show me the data, then how else could I take those without loading the view again?
PS: The use of ajax is not required ..
I would appreciate your collaboration and interest.