我想知道是否有任何简单的方法在代码点火器中调试路由?
我希望能够在日志中看到以下内容:
- 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
基本上它意味着我们可以看到我们何时到达路线以及它何时尝试加载.
有没有办法在这些方面启用某些东西?
@H_502_9@@H_502_9@
刚写了一个Router核心系统类的小扩展:
https://github.com/Philo01/CodeIgniter-Route-Debugging
它将按照您描述的方式进行调试. (除了404,我仍然需要添加)
@H_502_9@