News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Eric Bannatyne's Blog:
Simple CRUD With CodeIgniter
April 06, 2010 @ 11:50:30

In a new post to his blog Eric Bannatyne has written up a simple example of using the CodeIgniter PHP framework to create a basic CRUD interface (create, read, update, delete) for a basic "posts" table.

Last week we took a look at an introduction to the CodeIgniter PHP framework. In that example we saw the basics of how CodeIgniter works and the basics of the MVC pattern. But we didn't really do much with models. Today we will look at the power of models in CodeIgniter to make CRUD functions easy.

They help you create the basic table in a MySQL database (instructions could be easily customized for the database of your choice) and how to set up the controllers, models and views. The delete method is the only one that's slightly different - there's not a view for it as much as there is a controller action using the ID on the URL.

1 comment voice your opinion now!
crud codeigniter tutorial database


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso: Handling several PDO Database connections in Symfony2 through the DIC in PHP

Thomas Weinert: FluentDOM 5 + XML Namespaces

HowToForge: How To Install a Complete LEMP on Ubuntu/Debian

Procurios Blog: Fragment Cache - an introduction / PHP

Webitech.net: Create an Impressive Content Editing System with jQuery and PHP


Community Events





Don't see your event here?
Let us know!


release symfony code tips zendserver bugfix framework interview voicesoftheelephpant list series laravel conference introduction podcast language community api threedevsandamaybe deployment

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework