Welcome Guest, Not a member yet? Register   Sign In
Elegant Solution for Array Session - Ecommerce Basket
#8

[eluser]ontguy[/eluser]
It is needed since the CI session library is being used.

This is how the constructor is setup:
Code:
var $CI;

  function __construct()
  {
      $this->CI =& get_instance();
      log_message('debug', 'Cart class initialized.');
  }

In theory, if you were to use a session method other than the one provided with CI, just the function get_cart() and set_cart() would need be replaced and setup to return and receive the same format of data, and the rest should work.


Messages In This Thread
Elegant Solution for Array Session - Ecommerce Basket - by El Forum - 06-24-2008, 08:47 AM
Elegant Solution for Array Session - Ecommerce Basket - by El Forum - 06-24-2008, 09:44 AM
Elegant Solution for Array Session - Ecommerce Basket - by El Forum - 06-24-2008, 11:31 AM
Elegant Solution for Array Session - Ecommerce Basket - by El Forum - 06-24-2008, 11:53 AM
Elegant Solution for Array Session - Ecommerce Basket - by El Forum - 06-24-2008, 12:11 PM
Elegant Solution for Array Session - Ecommerce Basket - by El Forum - 06-24-2008, 03:42 PM
Elegant Solution for Array Session - Ecommerce Basket - by El Forum - 07-15-2008, 06:42 PM
Elegant Solution for Array Session - Ecommerce Basket - by El Forum - 07-16-2008, 12:19 PM
Elegant Solution for Array Session - Ecommerce Basket - by El Forum - 07-16-2008, 02:14 PM
Elegant Solution for Array Session - Ecommerce Basket - by El Forum - 07-16-2008, 07:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB