Re: [PHP] Object Undefinded index

2003-10-30 Thread Allex
); To iterate items in a Cart you may do something like that: foreach ($MyCart-getItems as $Item) { echo($Item-getProductId(), $Item-getQuantity); } Allex Steve Turner wrote: I am just learning to use objects. I am messing around with a shopping cart object, but am having confusing problems. I am

Re: [PHP] Object Undefinded index

2003-10-30 Thread Allex
I'm just adding a working example to my last post; check the implementation part at the end of the script; Cheers, Allex ?php class Item { var $_productID; var $_quantity; function Item($productID, $quantity) { $this-_productID = $productID

Re: [PHP] include problem

2003-10-29 Thread Allex
point of view, I still have some troubles with avoiding the same error messages while editing my php staff, that means the development environment which I use (Eclipse + some plugins) can't handle the include/require directives correctly. Perhaps you may face the same issue .. ?? Allex Pablo

[PHP] including files from different sub directories

2003-10-24 Thread Allex
| |globals.php |index.php | I'm running PHP 4.3.2 with Apache 2 on WinXP box. Thanks, Allex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php