I added the following article to Codeigniter wiki today
You can find a newer version here.
Download Files
Background and Credits
I learnt Codeigniter from a book “Professional Codeigniter” by Mr. Thomas Myer.
I started learning PHP six months ago and read a couple of good books about PHP and I had basic knowledge but not practical experience of PHP.
Professional Codeigniter was delightful to read. I have learnt a lot from the book. I highly recommend the book if you are a beginner like me and want to learn CI in practical ways.
Especially I enjoyed it in three ways.
1. There are some bugs which could not make it for the final edition. But I am glad that it did not make it. Because fixing these taught me more than I expected. I used the book forum, CI forum and Stackoverflow to solve the problems.
2. Reading a book which teachs you how to create one applicatoin, in this case is shopping cart, is the best way for me to learn PHP and CI.
3. While I was reading the book, I wanted to change the application in my way. And this was again good learning for me.
I recommend the book and read through it to understand fully.
I obtained a permission from the author and I’d like to add my version of updated code here.
Updates
Fixed ALL the bugs in front-end and back-end. (hopefully)
As I stated it before the author’s final code did not make the printed edition. So there are some mistakes and typos. So I corrected as much as possible. I don’t say that it is complete, but nearly.
Added captcha to newsletter subscribe.
I wrote a small post here about it.
Added a contact page with captcha.
Updated to CI 1.7.2
It seems the original code was developed with 1.6 or so. I updated to 1.7.2.
Changed to jQuery
Original code had Prototype for javascript. I migraged to jQuery.
Added a nudge menu to the front-end
Once I added jQuery, there are many menus I could add. However I just chose David Walsh’s nudge menu for the front sub-menu.
Random feature products images have a link to product page
There are random feature products on the right column. I added links to individual product pages.
Changed admin/products to show more details including categor names
Products page shows more details
Search function does not pick up inactive products
Added table-sort function (jQuery) to all the backend pages
This enables to sort in both ways, including show rows (10, 20, 30, etc) as well.
I used jQuery Data tables plugin for this.
Scroll to top
And more
I changed other small items which I don’t remember.
Original code
Download Files
Back-end
http://127.0.0.1/codeigniter_shopping/index.php/welcome/verify
login name: admin
password: admin


















