Jump to content

via Ad Packs

Can I use gCRUD with bonefire


  • Please log in to reply
10 replies to this topic

#1 fake_name_2

fake_name_2

    Member

  • Members
  • PipPip
  • 11 posts

Posted 25 May 2012 - 04:10 PM

Any sort of instructions would be great.

#2 duangsin.k

duangsin.k

    Member

  • Members
  • PipPip
  • 10 posts

Posted 25 May 2012 - 06:08 PM

Sort by ASC or DESC

#3 fake_name_2

fake_name_2

    Member

  • Members
  • PipPip
  • 11 posts

Posted 25 May 2012 - 06:52 PM

Question is


"Can I use gCRUD with bonfire " ?

#4 fake_name_2

fake_name_2

    Member

  • Members
  • PipPip
  • 11 posts

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 fake_name_2

fake_name_2

    Member

  • Members
  • PipPip
  • 11 posts

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

#6 fake_name_2

fake_name_2

    Member

  • Members
  • PipPip
  • 11 posts

Posted 25 May 2012 - 10:25 PM

Further
$output = $crud->render();
This line is causing problem.

#7 fake_name_2

fake_name_2

    Member

  • Members
  • PipPip
  • 11 posts

Posted 26 May 2012 - 02:45 PM

Anyone?

#8 Xrymz

Xrymz

    Newbie

  • Members
  • Pip
  • 5 posts

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 fake_name_2

fake_name_2

    Member

  • Members
  • PipPip
  • 11 posts

Posted 28 May 2012 - 08:26 PM

Perfect.
Thanks

#10 marceloabelda

marceloabelda

    Newbie

  • Members
  • Pip
  • 1 posts

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?

#11 Paul Savostin

Paul Savostin

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 15 April 2014 - 12:33 AM

Sort by ASC or DESC

 

:lol: :lol: :lol:






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users