加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 在codeigniter中调试路由?

发布时间:2020-12-13 17:58:54 所属栏目:PHP教程 来源:网络整理
导读:我想知道是否有任何简单的方法在代码点火器中调试路由? 我希望能够在日志中看到以下内容: Client sent : apps/somethingRoute found : apps/(:any) -- applications/searchbyname/$1Redirecting : apps/something -- applications/searchbyname/something/
我想知道是否有任何简单的方法在代码点火器中调试路由?

我希望能够在日志中看到以下内容:

Client sent : apps/something
Route found : apps/(:any) --> applications/searchbyname/$1
Redirecting : apps/something --> applications/searchbyname/something
//and just cause we can lets make the searchbyname function not exist
ERROR - 2012-09-16 22:10:05 --> 404 Page Not Found --> applications/searchbyname/something

基本上它意味着我们可以看到我们何时到达路线以及它何时尝试加载.

有没有办法在这些方面启用某些东西?

刚写了一个Router核心系统类的小扩展:

https://github.com/Philo01/CodeIgniter-Route-Debugging

它将按照您描述的方式进行调试. (除了404,我仍然需要添加)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读