edit_fields

void edit_fields( string $var [, string $var [, string $... ]] )
Quick Description: The fields that user will see on edit operation

The fields that user will see on edit operation.

Example:

 
function customers_example() {
$crud = new grocery_CRUD();
 
$crud->set_table('customers')
        ->set_subject('Customer')
        ->columns('customerName','contactLastName','creditLimit');
 
$crud->add_fields('customerName','contactLastName','city','creditLimit');
$crud->edit_fields('customerName','contactLastName','city');
 
$crud->required_fields('customerName','contactLastName');
 
$output = $crud->render();
 
$this->_example_output($output);
}