In case you've missed it, you are looking at an older version of the website. Checkout our latest version, we promise you will love it 😍

The simplest example, only one line of code...

Only one line of code... Even if you are bored to write the set_table function , the library searchs if the function name exists as a table name

function offices()
{
    $output = $this->grocery_crud->render();
 
    $this->_example_output($output);
}

And your CRUD is ready :-)

In this example I set the table name (offices) and I get the default Crud with add-edit and delete (create-update-delete). All the views are ready and you don't need anything else.

Below you can see (and play with it!) the result of this one line of code

Note: The below example is an iframe so it might appeared with a scroll bar. If you like you can view the example on a new tab