<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>South Bay Media Blog &#187; PHP</title>
	<atom:link href="http://www.southbaymedia.com/blog/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.southbaymedia.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 30 Dec 2009 07:02:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Codeigniter 1.7.2 Adds a New Class Library (Shopping Cart Class)</title>
		<link>http://www.southbaymedia.com/blog/codeigniter-1-7-2-adds-a-new-class-library-shopping-cart-class/</link>
		<comments>http://www.southbaymedia.com/blog/codeigniter-1-7-2-adds-a-new-class-library-shopping-cart-class/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 08:52:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Shopping Cart]]></category>

		<guid isPermaLink="false">http://blog.southbaymedia.com/?p=35</guid>
		<description><![CDATA[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(
   [...]]]></description>
			<content:encoded><![CDATA[<p>The latest release of <a href="http://codeigniter.com/">Codeigniter</a> 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.</p>
<p>Like all Codeigniter libraries, initilization is done as follows:</p>
<pre class="brush:php">
$this->load->library('cart');
</pre>
<p> And items are added to the cart as follows:</p>
<pre class="brush:php">$data = array(
               'id'      =&gt; 'sku_123ABC',
               'qty'     =&gt; 1,
               'price'   =&gt; 39.95,
               'name'    =&gt; 'T-Shirt',
               'options' =&gt; array('Size' =&gt; 'L', 'Color' =&gt; 'Red')
            );

$this-&gt;cart-&gt;insert($data);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.southbaymedia.com/blog/codeigniter-1-7-2-adds-a-new-class-library-shopping-cart-class/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
