hello,
i am using unset_list(); in my examples controller as
function offices_management()
{
try{
$crud = new grocery_CRUD();
$crud->set_theme('flexigrid');
$crud->set_table('offices');
$crud->set_table_title('Offices Management');
$crud->set_subject('Office');
$crud->required_fields('city');
$crud->columns('city','country','phone','addressLine1','postalCode');
$crud->change_field_type('city','readonly');
//$crud->unset_operations();
$crud->unset_list();
$output = $crud->render();
$this->_example_output($output);
}catch(Exception $e){
show_error($e->getMessage().' --- '.$e->getTraceAsString());
}
}
but it is giving an error
You don't have permissions for this operation --- #0
E:\wamp\www\ci_test\application\controllers\examples.php(46):
grocery_CRUD->render()
#1 [internal function]: Examples->offices_management()
#2 E:\wamp\www\ci_test\system\core\CodeIgniter.php(359):
call_user_func_array(Array, Array)
#3 E:\wamp\www\ci_test\index.php(202):
require_once('E:\wamp\www\ci_...')
#4 {main}
Please help me.