-
Book Overview & Buying
-
Table Of Contents
CodeIgniter 1.7
By :
Now we will see a last-minute addition to the book—the cart library. This library was added in CI 1.7.2 and is a very interesting addition to an already great framework. In this appendix we will see a very small example, just to explain the key points of this library.
We will see:
What we need to use the library
Adding products to the cart
Showing the cart
Updating the cart
In order to use this library, we will need CI version 1.7.2, so if you have been following this book with a previous version, download version 1.7.2 and unzip it. We have unzipped it in a folder called codeigniterc. If you do the same, you will be able to check your CI installation in http://localhost/codeigniterc/. Once this is done, we will create a new database; call it cart or whatever you want. For our example we will call it cart.
Don't forget to change the base_url value in your application/config/config.php. For example:
$config['base_url'] = "http://localhost...
Change the font size
Change margin width
Change background colour