⚠ 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

Grocerycrud does not work for me.



milamber
  • profile picture
  • Member

Posted 28 October 2012 - 16:24 PM

I have downloaded:

CodeIgniter 2.1.3
+ GroceryCrud 1.3.2

Setup database connection in CI. And added simple:



public function show()
{
$crud = new grocery_CRUD();
}


and it does not work. I get info:(I use WAMP for Win7)
[color=#000000][font='Times New Roman'][size=1][b][background=rgb(245, 121, 0)]Fatal error: Class 'grocery_CRUD' not found in[/background][/b][/size][/font][/color]


Could you help me?

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 28 October 2012 - 18:17 PM

Hello [member='milamber'] and welcome to the forum,

did you add the:


$this->load->library('grocery_CRUD');


before the :


$crud = new grocery_CRUD();


so in your case it would simply be:


$this->load->library('grocery_CRUD');

$crud = new grocery_CRUD();


Please read the instructions of how to install grocery CRUD at: http://www.grocerycrud.com/documentation/create-crud-codeigniter-tutorial

milamber
  • profile picture
  • Member

Posted 28 October 2012 - 18:27 PM

Thank you very much! After your hints it worked perfectly!