Fork me on GitHub

yiidebugtb by cr0t

Yii Framework Debug Toolbar Extension

This extension is very useful in the development stage of project. It helps you to get info about PHP environment, application, queries logs, benchmarking with a simple little toolbar at the top of the page. It is a recreated Symfony's developer toolbar. First idea and very first implementation was my, but this version mostly implemented by Eduard Kuleshov.

Dependencies

Yii 1.0.x/1.1.0 or above

Install

Extract the release file under protected/extensions.

Usage

main.php configuration file:

[...] 
// autoloading model and component classes
'import'=>array(
  'application.models.*',
  'application.components.*',
  'application.extensions.yiidebugtb.*', //our extension
),
[...]
'log'=>array(
  'class'=>'CLogRouter',
  'routes'=>array(
    array(
      'class'=>'CFileLogRoute',
      'levels'=>'error, warning, trace',
    ),
    array( // configuration for the toolbar
      'class'=>'XWebDebugRouter',
      'config'=>'alignLeft, opaque, runInDebug, fixedPos, collapsed, yamlStyle',
      'levels'=>'error, warning, trace, profile, info',
    ),
  ),
),
[...]

Options reference

License

Copyright (c) 2009-2010 Sergey Kuznetsov, Eduard Kuleshov

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Authors

Sergey Kuznetsov (kuznecov.sg@gmail.com)
Eduard Kuleshov

Contact

Sergey Kuznetsov (kuznecov.sg@gmail.com)

Download

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/cr0t/yiidebugtb