Nested Set Model Php library

两盒软妹~` 提交于 2019-11-29 14:55:53

问题


Hi I need to use the nested set model to mange product categories on my site. Does anyoune know of some good pre-built PHP libraries for handling nested sets in MySQL?


回答1:


You could try "Baobab", it's a library I recently released.

http://www.sideralis.org/baobab/




回答2:


It's a bit old, and could do with some refactoring, but I found a PHP Class "dbtree" on PHPClasses.org, which seems to do a fair job of it - http://www.phpclasses.org/package/2547-PHP-Manipulate-database-records-in-hierarchical-trees.html




回答3:


You could use a PHP ORM solution like Propel or Doctrine, they both support nested sets.



来源:https://stackoverflow.com/questions/3982067/nested-set-model-php-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!