Our Blog

Get your web site designed and hosted in 30 days or less!
Click Here to get started

Thank you for visiting the South Bay Media weblog. Here you will find site news & events, various posts related to our core service offerings and other topics such as programming tips and techniques or downloadable source code.

Codeigniter 1.7.2 Adds a New Class Library (Shopping Cart Class)

The latest release of Codeigniter 1.7.2 adds a new shopping cart class to the library which permits items to be added to a session that stays active while a user is browsing the site.

Like all Codeigniter libraries, initilization is done as follows:

$this->load->library('cart');

And items are added to the cart as follows:

$data = array(
               'id'      => 'sku_123ABC',
               'qty'     => 1,
               'price'   => 39.95,
               'name'    => 'T-Shirt',
               'options' => array('Size' => 'L', 'Color' => 'Red')
            );

$this->cart->insert($data);

Tags: , ,

2 Responses to “Codeigniter 1.7.2 Adds a New Class Library (Shopping Cart Class)”

  1. JACKIE says:


    PillSpot.org. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. High quality drugs. Buy pills online

    Buy:Advair.Cozaar.Lipitor.Seroquel.Prozac.Acomplia.Ventolin.Female Pink Viagra.Zocor.Buspar.Amoxicillin.Nymphomax.Lipothin.Lasix.Female Cialis.Wellbutrin SR.Benicar.Zetia.SleepWell.Aricept….

  2. ALBERTO says:


    Medicamentspot.com. Canadian Health&Care.No prescription online pharmacy.Best quality drugs.Special Internet Prices. High quality drugs. Order drugs online

    Buy:Accutane.Zyban.Zovirax.Prednisolone.Retin-A.Petcam (Metacam) Oral Suspension.Nexium.Synthroid.Human Growth Hormone.Valtrex.Mega Hoodia.Arimidex.Actos.100% Pure Okinawan Coral Calcium.Prevacid.Lumigan….

Leave a Reply