Which works great but the top menu item I give it a parent _id of 0 which doesn’t save because it doesn’t exist. Is there a way i can allow 0? I am creating button controls to allow being able to move up and down and rearrange the menu
i did that NULL as parent but i ran into another issue i couldnt do a query find parent ID equal to NULL it returned nothing
also another question this tree system what dors lft and right represent? the nodes above and below them? and if yes if its under the parent item does that mean left is NULL or the parent id and left are the same
You can use the TreeHelper available in https://github.com/ADmad/cakephp-tree to easily generate menus for models using TreeBehavior or nested dataset fetched using find('threaded').