Any sort of instructions would be great.
Can I use gCRUD with bonefire
Started by fake_name_2, May 25 2012 04:10 PM
9 replies to this topic
#1
Posted 25 May 2012 - 04:10 PM
#2
Posted 25 May 2012 - 06:08 PM
Sort by ASC or DESC
#3
Posted 25 May 2012 - 06:52 PM
Question is
"Can I use gCRUD with bonfire " ?
"Can I use gCRUD with bonfire " ?
#4
Posted 25 May 2012 - 09:34 PM
Question is
"Can I use gCRUD with bonfire " ?
Here is the error I get
Fatal error: Uncaught exception 'Exception' with message 'The table name does not exist. Please check you database and try again.' in ...\Learning\codeigniter\bf1\bonfire\application\libraries\grocery_crud.php:3748 Stack trace: #0 ...\Learning\codeigniter\bf1\bonfire\application\libraries\grocery_crud.php(3335): grocery_CRUD->get_table() #1 ...\Learning\codeigniter\bf1\bonfire\application\controllers\examples.php(68): grocery_CRUD->render() #2 [internal function]: Examples->employees_management() #3 ...\Learning\codeigniter\bf1\bonfire\codeigniter\core\CodeIgniter.php(332): call_user_func_array(Array, Array) #4 ...\Learning\codeigniter\bf1\index.php(260): require_once('...') #5 {main} thrown in...\Learning\codeigniter\bf1\bonfire\application\libraries\grocery_crud.php on line 3748
#5
Posted 25 May 2012 - 09:40 PM
Here is the function that is giving this error
function employees_management()
{
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('employees');
$crud->set_relation('officeCode','offices','city');
$crud->display_as('officeCode','Office City');
$crud->set_subject('Employee');
$crud->required_fields('lastName');
$crud->set_field_upload('file_url','assets/uploads/files');
$output = $crud->render();
$this->_example_output($output);
}
"Employee" table is present in DB
function employees_management()
{
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('employees');
$crud->set_relation('officeCode','offices','city');
$crud->display_as('officeCode','Office City');
$crud->set_subject('Employee');
$crud->required_fields('lastName');
$crud->set_field_upload('file_url','assets/uploads/files');
$output = $crud->render();
$this->_example_output($output);
}
"Employee" table is present in DB
#6
Posted 25 May 2012 - 10:25 PM
Further
$output = $crud->render();
This line is causing problem.
$output = $crud->render();
This line is causing problem.
#7
Posted 26 May 2012 - 02:45 PM
Anyone?
#8
Posted 27 May 2012 - 09:46 AM
"Employee" table is present in DB.... bonfire has db_prefix='bf_', try use bf_employee table... or try this code
function employees_management()
{
$this->db->dbprefix = '';
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('employees');
$crud->set_relation('officeCode','offices','city');
$crud->display_as('officeCode','Office City');
$crud->set_subject('Employee');$crud->required_fields('lastName');
$crud->set_field_upload('file_url','assets/uploads/files');$output = $crud->render();
$this->_example_output($output);
}
#9
Posted 28 May 2012 - 08:26 PM
Perfect.
Thanks
Thanks
#10
Posted 20 September 2012 - 09:36 PM
I do not work add and edit form, return to list ... (into the form)
someone happened something like this?
someone happened something like this?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












