Hello Every body i am now using Session component on my Cart model

I have Cart Model which does not extends from AppModel

Now here is the code that i am using to access Session properties

class Cart
{
        public $Session = null;

        public function __construct(){
                App::import('Component', 'SessionComponent');
                $this->Session = new SessionComponent;
        }

        public function add($id){

        }

        public function remove($id)
        {

        }

}


?>
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to