News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

INSC Dsigns:
Building a Shopping Cart using CodeIgniter's Shopping Cart Class
January 18, 2010 @ 08:55:35

On the INSC Designs site today there's a new tutorial walking you through the creation of a shopping cart with the help of the Shopping Cart class that's included in the CodeIgniter PHP framework.

Late last year CodeIgniter v1.7.2 was released with a lot of improvements and bug fixes. This version is now compatible with PHP5.3.0, they added is_php() to Common functions to facilitate PHP version comparisons, modified show_error() to allow sending of HTTP server response codes, and all internal uses now send proper status codes, Form helper improved and a new class which we are about to cover in this tutorial the Shopping Cart Class.

They walk you through some of the basics that the shopping cart class has to offer - adding items, removing them, updating the current item list. They show you how to create each piece of the MVC puzzle - the Product controller, a Cart controller and two basic views, one for the cart and the other for the products. They didn't create a model because they're not hooking it into a database/backend resource.

0 comments voice your opinion now!
shoppingcart codeigniter framework class


blog comments powered by Disqus

Similar Posts

John Mertic's Blog: PHP Windows Installer updated for PHP 5.2.0RC2 and more

KillerPHP Blog: PHP Interfaces: when and why you should use them instead of classes?

The Bakery: New Tutorials, News and Helpers Posted

Inside DealTaker Blog: Kohana PHP 3.0 (KO3) Tutorial Part 1

The Credence Blog: PHP frameworks - Which one is Most Suitable for you?


Community Events





Don't see your event here?
Let us know!


community series laravel unittest framework language install introduction developer list interview testing release api code symfony2 threedevsandamaybe opinion podcast refactor

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework