A common usage of GroceryCRUD is to be used in an already existing admin template or an already existing project. As jQueryUI is a bit heavy library by its own, it is important to be loaded only once. For example, if your project already have jQueryUI we don't have to load it again. In that case we are using the unsetJqueryUi method. The syntax is simple as it doesn't take any parameters.

For example:


With the above code, the Javascript and the CSS of jQueryUI is removed. It important to be aware of that as you need to make sure that the template offers the required JavaScript and the CSS for the jQueryUI before using the function unsetJqueryUi


You can see a full example below:

$crud->setSubject('Order', 'Orders');


$output = $crud->render();