change path of grocery add crud

0

Hi, I am new using codeigniter with grocerycrud and I have 1 question, which is if you can change the path of the add that brings the grocery crud to use my own view that I have created.

I know that the settings are made here but I do not know how to put the route by deduction I think it should be $crud->set_add but no idea what it would be like to call my eyes

public function paciente()
{
$crud = new grocery_CRUD();

$crud->set_table('paciente')->columns('idPaciente','nomPaciente','apPaciente',
'amPaciente','fecNacPaciente'
,'dirPaciente','fonoPaciente','ecPaciente','sexoPaciente','gsPaciente');

$crud->display_as('idPaciente','Rut')
->display_as('nomPaciente','Nombre')
->display_as('apPaciente','Apellido Paterno')
->display_as('amPaciente','Apellido Materno')
->display_as('fecNacPaciente','Fecha Nacimiento')
->display_as('dirPaciente','Dirección')
->display_as('fonoPaciente','Telefono')
->display_as('ecPaciente','Estado Civil')
->display_as('sexoPaciente','Sexo')
->display_as('gsPaciente','Grupo Sanguineo');

$crud->unset_delete();
$crud->unset_clone();
$crud->unset_read();



$output = $crud->render();

$this->_example_output($output);        
}
    
asked by Cris Escobar 06.07.2018 в 06:17
source

0 answers