I'm trying to get grocerycrud working, but I get this error:
Fatal error: Uncaught exception 'Exception' with message 'The table name does not exist. Please check you database and try again.' in C:\xampp2\htdocs\I-mprove\application\libraries\grocery_crud.php:3428 Stack trace: #0 C:\xampp2\htdocs\I-mprove\application\libraries\grocery_crud.php(3048): grocery_CRUD->get_table() #1 C:\xampp2\htdocs\I-mprove\application\controllers\examples.php(67): grocery_CRUD->render() #2 [internal function]: Examples->employees_management() #3 C:\xampp2\htdocs\I-mprove\system\core\CodeIgniter.php(359): call_user_func_array(Array, Array) #4 C:\xampp2\htdocs\I-mprove\index.php(202): require_once('C:\xampp2\htdoc...') #5 {main} thrown in C:\xampp2\htdocs\I-mprove\application\libraries\grocery_crud.php on line 3428
I've got the example tutorial working, but when I want to use my own database and tables I get the above error.
This is the function's code, which works with the tutorial data but not with my own custom data:
$crud = new grocery_CRUD();
$crud->set_table('products');
$crud->set_subject('Product');
$crud->unset_columns('productDescription');
$crud->callback_column('buyPrice',array($this,'valueToEuro'));
$output = $crud->render();
$this->_example_output($output);
This is the code that gives the error:
$crud = new grocery_CRUD();
$crud->set_table('tblBranches');
$crud->set_subject('brId');
$crud->unset_columns('brName');
$output = $crud->render();
$this->_example_output($output);
If someone could help me that would be great!