home ~ previous

PHP

Codeignitor

What? Codeignitor is an MVC framework for PHP and is well-known for its ease-of-use, performance and speed.

Why? It is a very popular framework and is probably the best for those new to the medium.

Would you? Yes. It is fast and popular in the Industry.

Codeignitor is a fast and low footprint PHP framework. It is probably the easiest to use and has a good community around it. If you are new to Frameworks, this is probably the best place to start.

Here is a zip file of a simple CRUD app using Codeignitor. It can be used as a building block for much larger applications and is certainly enough to see how Codeignitor works.

download

You can find the DB config here: /application/config/database.php

Here is the SQL file:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
SQLyog Enterprise - MySQL GUI v8.05 
MySQL - 5.0.67-community-nt : Database - ci
*********************************************************************
*/

CREATE DATABASE /*!32312 IF NOT EXISTS*/`ci` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `ci`;

/*Table structure for table `ci_crud_example` */

DROP TABLE IF EXISTS `ci_crud_example`;

CREATE TABLE `ci_crud_example` (
  `id` int(11) NOT NULL auto_increment,
  `forename` varchar(25) default NULL,
  `surname` varchar(25) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;


insert  into `ci_crud_example`(`id`,`forename`,`surname`) values (1,'John','Smith'),(2,'Paul','Small');

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;

home ~ previous

Rohan Leach .... thoughtful