在codeigniter中调试路由? [英] Debugging routes in codeigniter?

查看:227
本文介绍了在codeigniter中调试路由?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在代码点火器中是否有简单的路由调试方法?

I am wondering if there is any simple way of debugging routes in code igniter?

最好我希望能够在日志中看到:

preferably I would like to be able to see in the log along the lines of:

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

基本上这意味着我们可以看到当我们打到一条路线,要加载。

Basically it means we can see when we hit a route and where it is trying to load.

有没有办法启用这些行?

Is there any way to enable something along these lines?

推荐答案

刚写了路由器核心系统类的一个小扩展名:

Just wrote a small extension of the Router core system class:

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

它将按照您所描述的方式调试。 (除了404,我还需要补充)

It wil debug just the way you described. ( except for the 404, I still need to add that )

这篇关于在codeigniter中调试路由?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆