Re: HTML_Menu and MySQL
| From: | Alexey Borzov | Date: | Fri, 02 Apr 2004 06:58:56 +0000 |
| Subject: | Re: HTML_Menu and MySQL | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11581@lists.php.net to get a copy of this message | ||
Hi!
dr. zoidberg wrote:
I have downloaded HTML_Menu today and it is exactly what I need :) Only one question. How Can I read menu data from mysql, and what structure should that be, simple child/parent structure or something more sophisticated. I have tried some queries today but with no luck. Any body here to help?The latest release of DB_NestedSet is able to produce the structure for HTML_Menu http://pear.php.net/package-changelog.php?package=DB_NestedSet&release=1.3.3
I'm thinking of integrate HTML_Menu with smarty. Will that be a good choice or you will recomend some orher navigation (pear offcourse).There is ArrayRenderer in HTML_Menu package, its output can be easily fed to Smarty, I think.