Professional CodeIgniter Book Review

With all the furore surrounding Ruby on Rails, you’d be forgiven for forgetting that any other web application framework ever existed. The fact is, of course, that there are many to choose from, and one leading PHP-based framework is MVC-based CodeIgniter.

The CodeIgniter website is a great place to start for newcomers and more experienced developers alike, but I still like a good book, that I can hold in my hand and digest. Wrox’s Professional CodeIgniter is such a book, and presents a good overview of the framework that’s getting deserved attention in the web development community.

The book weighs in at a fairly lightweight 336 pages, but covers various aspects of CodeIgniter development, together with a history of the Model View Controller Pattern and an examination of Agile Development that is often employed by modern web-centric development teams. Whilst these discussions are not completely necessary to experienced programmers looking at getting to grips with CodeIgniter, they may benefit others who are looking for a more rounded introduction to web development. Being familiar with MVC and agile-development, I skipped these sections and headed for some CodeIgniter code.

Chapter 3 satisfies my code craving, where an overview of CodeIgniter is presented, covering such topics as the default installation, configuration, CodeIgniter libraries, helpers, and models, views and controllers, the foundation of any CodeIgniter site.

Chapters 4-8 walks through the development of an e-commerce style website with a shopping cart, categories and products, and a dashboard for managing details of the site. Chapter 9 covers some security issues, and although the information is presented, it is not intended as an exhaustive coverage of PHP Security. There is never a one book fits all situation, and for PHP security, you’re likely to find Essential PHP Security of great use.

The book concludes with an brief examination of the site launch, though this adds little of any significant importance.

It’s good to see a CodeIgniter book, and the quality of the writing is generally high, with easy to follow code examples. The book is very thin on AJAX coverage, which is quite a negative. Used in conjunction with the excellent CodeIgniter forums and website, it’s likely to prove a great resource for learning the framework.

The book’s list of Chapters is as follows:

  1. Welcome to the MVC World
  2. Agile Methodologies and Approaches
  3. A 10,000-Foot View of CodeIgniter
  4. Creating the Main Website
  5. Building a Shopping Cart
  6. Creating a Dashboard
  7. Improving the Dashboard
  8. Last-minute Upgrades
  9. Security and Performance
  10. Launch
  • Ben

    I am a beginner learning PHP on the codeigniter framework and was given this book to show me how to develop a site from scratch.

    The book on the whole is very good. It guides you through step by step. Yes it has “easy to follow code examples” but these are not all right. For a beginner it is extremely frustrating to keep getting errors even though the code has been copied EXACTLY.

    They do have an Errata section on their site which makes amendments for some code but not all! I am up to chapter 5 and have already submitted 8 errors which I have found.

    The book is good for a developer with some existing knowledge of php/codeigniter.

    If you are a beginner like me, I recommend downloading the completed code from the publisher’s site because you will need to compare it with the book when you get errors.

  • Shane

    Thanks for the comment Ben. I didn’t run the code myself so didn’t notice some of the issues you’ve encountered.

    It certainly makes life harder, but your reports will no doubt be appreciated by the publisher and community of readers.

  • Ben

    Thats ok, no problem. I will post again once I have finished the book just to give my final thoughts on it and what the error situation is.

  • Shane

    Nice one Ben – how are you finding CodeIgniter? It certainly makes using PHP more fun, that’s for sure.