The example in this article tells you how Yii debugging views the execution of SQL statements. Share to everyone for your reference, specific as follows:
Account Opening Debug
Modify configuration file: protected/config/main.php,
' Log ' => array (
' class ' => ' Clogrouter ', '
routes ' => array (
' class ' => ') Cfilelogroute ',
' Levels ' => ' trace, info, error, warning ',
),
//Uncomment the following to show log Messag Es on Web pages
Array (
' class ' => ' Cweblogroute ', '
levels ' => ' trace ',//level is trace
' categories ') => ' system.db.* '//Only displays information about the database, including database connections, database execution statements,),
For more information on YII-related content, readers who are interested in this site can view the topics: Introduction to YII Framework and summary of common skills, "Summary of PHP Excellent development framework", "Smarty Template Introductory Course", "Introduction to PHP object-oriented programming", "PHP string" Summary of Usage , "Php+mysql Database operation Introduction Tutorial" and "PHP common database Operation Skills Summary"
I hope this article will help you with the PHP program design based on the YII framework.