Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
24Activity
0 of .
Results for:
No results containing your search query
P. 1
Tutorial CRUD With CodeIgniter 2 Maxime Keltsma En

Tutorial CRUD With CodeIgniter 2 Maxime Keltsma En

Ratings: (0)|Views: 832|Likes:
Published by rojausnalcol

More info:

Published by: rojausnalcol on May 03, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/21/2013

pdf

text

original

 
CRUD with CodeIgniter 2.0
version 1.0:2011-09-12author:Maxime Keltsma (mailto:m.keltsma@voila.fr )
Index
Prerequisites ........................................................................................................................................2What i used...........................................................................................................................................2First URL test.......................................................................................................................................4Database...............................................................................................................................................4Application configuration.....................................................................................................................6In construction_sites/application/config/config.php:.......................................................................6In construction_sites/application/config/database.php:...................................................................6In construction_sites/application/config/routes.php:.......................................................................7Project specifications............................................................................................................................8Class diagram...................................................................................................................................9Models...........................................................................................................................................10Form validation rules.....................................................................................................................10Source code........................................................................................................................................13Models...........................................................................................................................................13Views.............................................................................................................................................16Site controler..................................................................................................................................20CSS.....................................................................................................................................................32Misc....................................................................................................................................................36Parameters......................................................................................................................................36Source code comment....................................................................................................................36The great secret...................................................................................................................................36Conclusion..........................................................................................................................................45In this tutorial, we are going to make basic CRUD (Create Read Update Delete) application usingCodeIgniter 2.0 framework.We'll handle a simple table containing construction sites.The CRUD would look like this:
CRUD with CodeIgniter 2.0 V1.0 Sept 12-2011 Maxime Keltsma Page 1 / 46
 
The data that compose a construction site will allow us to manipulate:
A caracter string for site name.
An integer value for the cost.
A select list for progress value.
A radio button for site type (private or public).
Two checkboxes for isStarted and isSuspended. The form to update/create a site would look like this:
Prerequisites
I assume:
You have a database server and http server. (I used Wamp)
You have installed CodeIgniter 2.0.3 or better, for a project called "construction_sites".
You have at least basic notions in PHP 5 and SQL.
You are crazy enough to code PHP on week end ;-))
What i used
CRUD with CodeIgniter 2.0 V1.0 Sept 12-2011 Maxime Keltsma Page 2 / 46
 
Windows 7
Wamp 2.0:http://www.wampserver.com/(Mysql 5.1; PHP 5.3.0, Apache 2.2.11)
CodeIgniter 2.0.3: http://codeigniter.com/
For SQL work, i used old Mysql Query Browser, but you can use phpMyAdmin providedwith Wamp, or the new tool Mysql Workbench.
Bouml for UML diagrams:http://bouml.free.fr 
 Netbeans 6.9:http://netbeans.org/
Open Office:http://www.openoffice.org/to type this tutorial.
CRUD with CodeIgniter 2.0 V1.0 Sept 12-2011 Maxime Keltsma Page 3 / 46

Activity (24)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Vulpe Florian liked this
Vulpe Florian liked this
Vulpe Florian liked this
Vulpe Florian liked this
Vulpe Florian liked this
Vulpe Florian liked this
Vulpe Florian liked this
Vulpe Florian liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->