Home >php教程 >PHP开发 >Turn on debugging mode in CI framework

Turn on debugging mode in CI framework

黄舟
黄舟Original
2016-12-29 09:48:294152browse

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)!


Statement:
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