我想知道用Code Igniter制作面包屑的最佳方法是什么 .
1:使用URL检索字符串
示例: $this->uri->segment(2)
$this->uri->segment(2)
2:你知道另一种方式吗?
我真的很想得到你的意见
使用网址细分特定于您构建网址的方式 - 并不总是1:1匹配 .
http://forum.codeigniter.com/thread-25372.html?highlight=137949
如果你想要100%匹配并且易于定制使用这个:
https://github.com/nobuti/Codeigniter-breadcrumbs
Breadcrumbs是一个小型库,可帮助您使用CodeIgniter管理HTML面包屑 .
buti 's Codeigniter-breadcrumbs library, particularly with the 1031386 method and how it uses Codeigniter' s "site_url"方法存在一些问题,而不是为您提供使用"base_url"推送到面包屑的选项 . 您可以查看我的分叉,因为不再维护buti的回购(自2012年起):https://github.com/aburd/Codeigniter-breadcrumbs
3 回答
使用网址细分特定于您构建网址的方式 - 并不总是1:1匹配 .
http://forum.codeigniter.com/thread-25372.html?highlight=137949
如果你想要100%匹配并且易于定制使用这个:
https://github.com/nobuti/Codeigniter-breadcrumbs
Breadcrumbs是一个小型库,可帮助您使用CodeIgniter管理HTML面包屑 .
buti 's Codeigniter-breadcrumbs library, particularly with the 1031386 method and how it uses Codeigniter' s "site_url"方法存在一些问题,而不是为您提供使用"base_url"推送到面包屑的选项 . 您可以查看我的分叉,因为不再维护buti的回购(自2012年起):https://github.com/aburd/Codeigniter-breadcrumbs