I'm trying to figure out how to query the structure
from a database (e.g. MySQL) and implode it into string
to work with PHP Layers Menu... Any help is very
Logged In: YES
I have not included anything like this in the package
because IMHO a menu class should not care about
where data come from and should only define a clear
menu structure format (i.e. a well defined data format);
however, as there are people that ask for this feature
(you are not the first one, absolutely ;-) I'm meditating
about including it in this development branch.
However, go to
and download version 2.3.0.
Then look at
and at the categories table layout in
you can do something similar.
If you need some comments about the code I have cited
and about how it works, let me know.
You can find such an implementation in the development version
I have just released, i.e. 2.3.3, that provides also an example.
This implementation directly fills the object variables without
the need of preparing a menu structure string that should be
subsequently parsed to fill the named object variables; this
approach should allow to obtain better performance w.r.t.
the solution I have proposed in my previous message.
Please read the changelog for more details.
Due to the lack of feedback for more than one month,
I'm closing this support request.
Log in to post a comment.