Hello i have problem with this simple example. I'm writing the code at my main controller but when i try to open it in local connection doesn't appear. Am i doing something wrong?
http://www.grocerycrud.com/examples/the-simplest-example
⚠ 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. ⚠
Posted 03 December 2013 - 08:15 AM
Hello i have problem with this simple example. I'm writing the code at my main controller but when i try to open it in local connection doesn't appear. Am i doing something wrong?
http://www.grocerycrud.com/examples/the-simplest-example
Posted 03 December 2013 - 08:45 AM
Your table name is offices ? if not you will not be able to see any info ....
try using http://www.grocerycrud.com/examples/3_lines_only
Posted 03 December 2013 - 10:08 AM
My table name is users and i changed it. I found the problem and i fixed it.
I have to write:
function users()
{
$output = $this->grocery_crud->render();
$this->_example_output($output);
}
(but i was writing:)
function users()
{
$this->_example_output($output);
$output = $this->grocery_crud->render();
}
Thank you for the answer, anyway!
Posted 03 December 2013 - 10:10 AM
Good you manage to fix it. Since you only posted the link not the actual code i was thinking that the table name may be the problem.