如何编码breadcrumbs(php kohana框架)?
问题描述:
这是编码面包屑的好方法吗?如何编码breadcrumbs(php kohana框架)?
- 创建表的“类别”用mysql
- 后neccessary列“PARENT_ID”列上创建
- 如果PARENT_ID栏为空值,这意味着这个类是父母的if else这列父是一列在“parent_id”列中标记的ID
- 以递归方式从当前列开始查询“parent_id”列并打印类别名称。
答
你想看看改性预购树的遍历模块
- 小枝MPTT github.com/banks/sprig-mptt
- 果冻MPTT github.com/AlexKupreev/jelly-mptt
- V3 ORM MPTT github.com/kiall/kohana3-orm_mptt
- V2 ORM MPTT dev.kohanaframework .org/projects/mptt