Re: [PHP] Having trouble with a multidimensional array menu - new and improved

2009-02-23 Thread Daevid Vincent
Okay, I scrapped my multi-array version and have come up with what seems to be a cleaner recursive object way of doing this. The last bit of help I need is in the expandSelectedMenu() part. I need a way to store all the parent nodes above, then traverse them and set their CSS class accordingly as

Re: [PHP] Having trouble with a multidimensional array menu

2009-02-18 Thread Jim Lucas
Daevid Vincent wrote: I'm trying to build a multi-array menu (but open to using classes or something if that makes this easier). Does anyone have a solution already working? I'm very close, but I can't seem to get my "directories" to work and I end up with extraneous blocks. here's what I need

Re: [PHP] Having trouble with a multidimensional array menu

2009-02-18 Thread Jim Lucas
Daevid Vincent wrote: I'm trying to build a multi-array menu (but open to using classes or something if that makes this easier). Does anyone have a solution already working? I'm very close, but I can't seem to get my "directories" to work and I end up with extraneous blocks. here's what I need

[PHP] Having trouble with a multidimensional array menu

2009-02-18 Thread Daevid Vincent
I'm trying to build a multi-array menu (but open to using classes or something if that makes this easier). Does anyone have a solution already working? I'm very close, but I can't seem to get my "directories" to work and I end up with extraneous blocks. here's what I need to re-create: