In case you've missed it, you are looking at an older version of the website. Checkout our latest version, we promise you will love it 😍

unset_fields

void unset_fields( string $var [, string $var [, string $... ]]  )
Quick Description: Unset fields from both add and edit form.
Available for version >= 1.2.1

Unset_fields is nothing more than a shorcut to unset_add_fields and unset_edit_fields

So for example if you have:

 
$crud->unset_fields('name','age');
 
it is just a shortcut to:
 
$crud->unset_add_fields('name','age');
$crud->unset_edit_fields('name','age');
 

nothing more complicated than that.


You can also use the unset_fields with an array input so for example:

 
$crud->unset_fields(array('name','age'));
 
is the same thing as this:
 
$crud->unset_fields('name','age');