⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

function table_exists() on a non-object in /var/www/ci/tpw/models/grocery_crud_model.php on line 45



Aimad Majdou
  • profile picture
  • Member

Posted 14 December 2013 - 17:35 PM

I'm using GroceryCRUD for the first time, in my controller I tried as the following :

public function user_management(){
$crud = new grocery_CRUD();


$crud->set_table('user');
        $crud->set_subject('Utilisateurs');
        $crud->columns('firstName','lastName','email','type');
        $crud->display_as('firstName', 'Prénom');
        $crud->display_as('lastName','Nom');
        $crud->display_as('email','E-Mail');
        $crud->display_as('type','Type');


$crud->fields('id', 'email', 'password' ,  'firstName' ,'lastName', 'avatar', 'type');


$output = $crud->render();


$this->_example_output($output);
}

But I got this error message :

 

Selection_001.png

I searched about this issue in this forum and I found this article which didn't helped me by anything.

 

/topic/1130-unable-to-install-grocerycrud/

 

 

I'll appreciate any assistance :)

 

 

 


Aimad Majdou
  • profile picture
  • Member

Posted 14 December 2013 - 18:08 PM

I finally solved the problem, it was when I wanted to integrated CodeIgniter with Aptana, I added some variables to the Model and the Controller class in the system folder.