Re: [PHP] Recursive Object Troubles

2003-08-26 Thread Mike Migurski
>I am building a recursive Menu object. Inside each menu item there is an >array which should allow me to add submenu items and so on. I am having >trouble, though, with getting the submenus to stay. They are >disappearing as I go along. Without really going through your code (sorry) I would ha

[PHP] Recursive Object Troubles

2003-08-25 Thread Joshua Groboski
I am building a recursive Menu object. Inside each menu item there is an array which should allow me to add submenu items and so on. I am having trouble, though, with getting the submenus to stay. They are disappearing as I go along. Here is the menu class: (part of it anyway) class Menu {