CodeIgniter 1.7 by Packt Publishing review

Pack Publishing asked me to do a review of their “CodeIgniter 1.7” book.
Since I’m familiar with Packt Publishing and books (not with reviewing) I said I’ll give it a go.

This book is for PHP programmers who are familiar or unfamiliar with model-view-controller framework CodeIgniter. After reading this book you should be able to use most of CodeIgniter`s features and make your own scripts which run on CodeIgniter.

CodeIgniter (CI for short) is an Open-Source PHP Model-View-Controller (MVC) framework. Multiple studies concluded that CodeIgniter is faster and lighter than other PHP frameworks like CakePHP and Zend Framework.  This book is targeted at PHP programmers who want to save time, effort and cost by switching to the CodeIgniter framework.

There are several benefits of CodeIgniter:

  • It runs on PHP 4 and
  • It generates clean urls (using mod_rewrite)
  • It’s extensible
  • It doesn’t require a template engine
  • It’s well documentated (especially when reading this book!)
  • It`s free!
  • It’s safer
  • It saves you loads of time

For a full list of features I recommend you read this link.

Before reading this book I had no experience with MVC. I do have some experience with PHP/SQL and much experience with HTML/XHTML.
The books requirements are basic knowledge of HTML and PHP. Basic knowledge of (My)SQL is also recommended.

The book covers the following topics:

  • Installing CodeIgniter
  • Creating a basic CodeIgniter page
  • Use CodeIgniter to connect to a database and execute read queries
  • Creating HTML pages and forms
  • Using sessions and implement security systems like a login system
  • Object-oriented programming in CodeIgniter
  • Create your own CodeIgniter plugins
  • Communicate using FTP and XML-RPC
  • Using CodeIgniter to provide dynamic information (for the constructions of calendars and translations)
  • Handle files (up and downloading) and images
  • Putting your site online, useful tips and trick to avoid errors
  • Advice about upgrading CodeIgniter
  • Create, Read, Update, Delete; create your first fully database powered script
  • In general, how codeigniter works and what the benefits are
  • Writers recommendation plugins
  • Additional resources (browser plugins, webserver software, literature)
  • Appendix: using codeigniter`s cart function to create a shopping cart

After reading the book I’m able to create and enhance websites with features found in the book. I can now tell my customers I make some “advanced” script myself.

The book still leaves me with few questions about advanced topics like database query caching. The book points to the CodeIgniter user guide (online), which fed my information hunger.

The book fulfilled my expectations.

I’ve placed the book in reach of my desktop. Programming can be overwhelming although CodeIgniter makes life easier. I’m happy to have this book in my bookcase! I’m very sure I’m going to use it on my next big PHP project.

I recommend this book to all PHP programmers who are looking for a framework to lower the workload. After reading this book you’re ready to replace most PHP scripts by your own custom made scripts based on CodeIgniter.

A sample chapter can be found here. It’s chapter 3: “Navigating your site”.

If you’re interested and read more, or buy the book you should check out this link.

CodeIgniter 1.7

Aside

I`ve decided to go with CodeIgniter as PHP Model-View-Controller framework.
To learn the basics of this open source framework I`ve chosen for the CodeIgniter 1.7 book by Packt Publishing.

The book describes how to start with CodeIgniter beginning with the installation. The first steps followed by connecting databases, creating HTML pages and forms, using sessions and add security etcetera. The final chapters include more advanced features like dynamic information and uploads.

My review of this book will be online somewhere in january.

A sample chapter, which describes the basics of MVC and CodeIngiter can be found here.

More information about the book and and a link to buy it can be found here.

Microformats implementation

Aside

apress-micoformats

I`ve recieved “Microformats: Empowering Your Markup for Web 2.0” (ISBN 978-1-59059-814-6) a few days ago.
I`ve been busy implanting MicroFormats to this website.
It`s now possible to import hCard data whenever you`re trying to place a comment. The website is also MicroID enabled. I`ve also added APML support to the website.

In addition to the new features I`ve also fixed a caching bug (which was my fault actually).

And ofcourse the forum has been working for the last 2 weeks atleast.

I`m currently exploring DandyID to replace a bit of the current menu to a half-automatic identity manager.