Home > php教程 > PHP开发 > body text

Turn on debugging mode in CI framework

黄舟
Release: 2016-12-29 09:48:29
Original
4093 people have browsed it

1. Enable debugging mode in the CI framework;

Add in front of the method name that needs to be debugged: $this -> output -> enable_profiler(TRUE);

This way You can see the large printed s q l statement and other debugging information

2. Note that there is a segment segment()

$this->uri->segment(4); //Take out The number of the url fragment, such as id

. The above is the content of turning on the debugging mode in the CI framework. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!