Saturday, March 5, 2011

How to get debug information about your Yii application quickly

<?php

var_dump(Yii::app());

phpinfo();

?>
will tell you a lot about your current Yii app. This will show your database connection passwords, so be careful.

1 comment:

  1. Uncomment the code below in config.php to show debug info on pages:

    array(
    'class'=>'CWebLogRoute',
    ),

    ReplyDelete