> What is the proper way to transfer class properties through-out my
> pages...
>
> if (!session_is_registered("myCart")){
> $myCart = new ShoppingCart();
> (some other stuffs...)
> session_register("myCart");
> }
you dont need to do this,
> else {
> $myCart = new ShoppingC
I think your mising the point. I use classes to create more modular code, I
find it keeps my code structured and easy to modify for other sites. I can
have a class for one site, I can then copy that class and easily modify it
to suit for another site. I do not use my classes for storeing data (ie.
2 matches
Mail list logo