O'Reilly logo

CodeIgniter for Rapid PHP Application Development by David Upton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Instant CRUD or Putting it All Together

The most essential and the most boring part of writing any dynamic site is the CRUD. You have one or more database tables; you need to be able to Create, Read, Update, and Delete entries on each of these. Later on, you'll do clever things with the data, but until there is some user-friendly way to put it there and maintain it, your site isn't viable.

But this involves writing CRUD functions and these, though conceptually quite easy, are fairly complex and time-consuming. So for our site, I've written a generalized CRUD model, using CI's classes and helpers to make it easier. In this chapter, you'll see how this model works and how to integrate it into our application.

The CRUD model does more than ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required