Grocery CRUD – A Codeigniter library
I have already made a post about the importance of using a framework, in order to make your life easier and maximize your productivity. Using libraries is a way to go beyond the basics of the framework and amplify the advantages. Grocery CRUD is a library made by John Skoumbourdis that creates, as the name implies, a full featured CRUD for your backend.
What exactly is a CRUD?
CRUD is an acronym for create, read, update, delete. The basic database operations that one must implement in any kind of project. The most common use of CRUD operations is at the backend of any CMS or any other web application.
OK. What is Grocery Crud?
Grocery CRUD is a Codeigniter library that creates a full featured, beautiful interface that allows you to search, read, insert, update and delete database records with the least possible amount of typing. The obvious advantage of using Grocery CRUD, is that you don’t have to create over and over again the necessary database operations on your own. You may have solved this problem by creating a DAL (database abstraction layer) but you have to ask yourself: Is the DAL that I am using generic enough. Most of the time we need to go back and modify the DAL, in order to fit the specific needs of our project. Grocery CRUD handles and abstractifies most of the common issues that a developer comes accross and it is full of callbacks that allow you to tweek and modify the behavior of the library. The output of this library is beautiful, gets the job done and you will feel very, very good about it when you are presenting the backend of your application.
Grocery CRUD has a lot of features that I am not going to write about here, instead you can check out the library yourself at http://www.grocerycrud.com/ and be sure to see the examples section to fully appreciate the power of this library.
Wait there’s more
I am very excited about this library but I did find something missing from it. I wanted the library to be able to handle the extra attributes that m-n tables occasionaly have. So I decided to make the necessary changes and made a post about it at the Grocery CRUD forum. If you are considering using this library feel free to use my changes http://www.grocerycrud.com/forums/topic/1552-edit-extra-fields-in-n-n-relations/