Practical CodeIgniter 3
Lonnie EzellThis is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing
process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and
many iterations to get reader feedback, pivot until you have the right book, and build traction once
you do.
From the trenches advice and techniques for making themost out of CodeIgniter.
Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . i
The Book At A Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii
The Book At A Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
1. Where Does This Go? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
MVC - Easy as 1 2 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
So, What Goes Where? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Helpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Third Party Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Use Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Simple Blog System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Survey Generator App . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Controller Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7&n