Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dhiman Chakraborty  >  dcart  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file for dcart
Class: dcart
Manage shopping cart items stored in sessions
Author: By
Last change:
Date: 2013-09-25 03:01
Size: 365 bytes
 

Contents

Class file image Download
<?php
include 'dcart.php';

dCart::getInstance('cart')->Remove();
dCart::getInstance('cart')->Add(array(
    
'id' => 1,
    
'name' => 'Pen',
    
'price' => 10,
    
'quantity' => 1
    
)
)->
Add(array(
            
'id' => 1,
            
'name' => 'Pen',
            
'price' => 10,
            
'quantity' => 5
        
)
    );

dCart::getInstance('cart')->Show();