Nested sets |
I have to create multi-level menu (for the shop). I found that I should use nested sets to create this one. Could you reccomend me a libriary for this?
If you are talking about getting a multi dimensional array generated for your menu into JS you would use something like:
PHP Code: var menuArray = <?php echo json_encode($menu) ?>; http://php.net/manual/en/function.json-encode.php However, unless you have a particular need for a dynamic menu, I would hard code the menu in the view. Hope that helps, Paul. |
Welcome Guest, Not a member yet? Register Sign In |