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 (m.sbmmt.com)!