[EXTENSION] Yii Debug Toolbar (1.0.x version)
#1
Posted 11 January 2010 - 02:17 AM
It is a recreated Symfony's developer toolbar.
First idea and very first implementation was my, but this version mostly implemented by Eduard Kuleshov.
This version tested for 1.0.x branch of Yii Framework.
Work for 1.1 branch is doing (maybe it will need to full rewrite code).
You can download it from these places:
* http://www.yiiframew...ion/yiidebugtb/
* http://code.google.c.../downloads/list
http://wiki.summercode.com/ - Many articles and tips about programming, patterns, language, SCMs, server administration and other stuff.
http://careers.stack...ergey-kuznetsov - CV page.
#2
Posted 11 January 2010 - 03:10 AM
under php5.3 requires some minor modifications.
Prod: Debian (php_5.3.1, mysql_5.1.41, nginx)
---and i'm a total noob
#3
Posted 11 January 2010 - 03:20 AM
r.vas, on 11 January 2010 - 03:10 AM, said:
under php5.3 requires some minor modifications.
Which modifications we need to make to work this extension on the PHP 5.3? You can send me to "kuznecov.sg@gmail.com" and I can commit it to code.google.com.
http://wiki.summercode.com/ - Many articles and tips about programming, patterns, language, SCMs, server administration and other stuff.
http://careers.stack...ergey-kuznetsov - CV page.
#4
Posted 11 January 2010 - 08:49 AM
Congratulations, excelent extension, I've tested with Yii 1.1.0 and PHP 5.3 and it's working like a charm. No problems 'til now.
Gr8 extension.
Support me on Patreon: https://www.patreon.com/yiiframework
Promover Yii Framework en Español en Patreon: https://www.patreon....yiiframework_es
YiiFramework en Español: http://yiiframework.es/ - Canal de YouTube - Facebook
Follow me: @robregonm.
#5
Posted 11 January 2010 - 09:11 AM
robregonm, on 11 January 2010 - 08:49 AM, said:
Congratulations, excelent extension, ...
Gr8 extension.
Thanks!
robregonm, on 11 January 2010 - 08:49 AM, said:
Hmm...
That's sounds like I am the only one looser!

Fatal error: Class 'CErrorEvent' not found in /Users/cr0t/Workspace/com.site/protected/extensions/yiidebugtb/XWebDebugRouter.php on line 251
I think that it could be possible because of late static binding in PHP 5.3, but I'm not sure.
http://wiki.summercode.com/ - Many articles and tips about programming, patterns, language, SCMs, server administration and other stuff.
http://careers.stack...ergey-kuznetsov - CV page.
#6
Posted 11 January 2010 - 10:15 AM
The 'CErrorEvent' error is caused by some PHP strict notices. For example,
formatArrayAsHtml and yiiAppAsArray are called statically while they are not declared so.
Also, CLogRoute::collectLogs() signature is changed in Yii 1.1.
#7
Posted 11 January 2010 - 10:45 AM
qiang, on 11 January 2010 - 10:15 AM, said:
...
Thank you very much! I'm proud that project leader says this words about this little extension!

qiang, on 11 January 2010 - 10:15 AM, said:
The 'CErrorEvent' error is caused by some PHP strict notices. For example,
formatArrayAsHtml and yiiAppAsArray are called statically while they are not declared so.
Also, CLogRoute::collectLogs() signature is changed in Yii 1.1.
Thank you very-very-very much! You show me the right way to solve this task! There are was few problems like these:
macdi:yiidebugtb cr0t$ php XWebDebugRouter.php PHP Strict Standards: Declaration of yiiDebugDB::getInfo() should be compatible with that of yiiDebugClass::getInfo() in /Users/cr0t/Workspace/com.site/protected/extensions/yiidebugtb/XWebDebugRouter.php on line 251 Strict Standards: Declaration of yiiDebugDB::getInfo() should be compatible with that of yiiDebugClass::getInfo() in /Users/cr0t/Workspace/com.site/protected/extensions/yiidebugtb/XWebDebugRouter.php on line 251 PHP Strict Standards: Declaration of yiiDebugTrace::getInfo() should be compatible with that of yiiDebugClass::getInfo() in /Users/cr0t/Workspace/com.site/protected/extensions/yiidebugtb/XWebDebugRouter.php on line 272 Strict Standards: Declaration of yiiDebugTrace::getInfo() should be compatible with that of yiiDebugClass::getInfo() in /Users/cr0t/Workspace/com.site/protected/extensions/yiidebugtb/XWebDebugRouter.php on line 272 PHP Strict Standards: Declaration of yiiDebugTime::getInfo() should be compatible with that of yiiDebugClass::getInfo() in /Users/cr0t/Workspace/com.site/protected/extensions/yiidebugtb/XWebDebugRouter.php on line 284 Strict Standards: Declaration of yiiDebugTime::getInfo() should be compatible with that of yiiDebugClass::getInfo() in /Users/cr0t/Workspace/com.site/protected/extensions/yiidebugtb/XWebDebugRouter.php on line 284 PHP Strict Standards: Declaration of yiiDebugMem::getInfo() should be compatible with that of yiiDebugClass::getInfo() in /Users/cr0t/Workspace/com.site/protected/extensions/yiidebugtb/XWebDebugRouter.php on line 297 Strict Standards: Declaration of yiiDebugMem::getInfo() should be compatible with that of yiiDebugClass::getInfo() in /Users/cr0t/Workspace/com.site/protected/extensions/yiidebugtb/XWebDebugRouter.php on line 297 PHP Fatal error: Class 'CLogRoute' not found in /Users/cr0t/Workspace/com.site/protected/extensions/yiidebugtb/XWebDebugRouter.php on line 439 Fatal error: Class 'CLogRoute' not found in /Users/cr0t/Workspace/com.site/protected/extensions/yiidebugtb/XWebDebugRouter.php on line 439
But I can see they only when try to run from command line (apache logs was not so talkative

I'm commit fixes to code.google.com project and also update downloads section at the extensions.
Now it working with Yii 1.1 and PHP 5.3 without errors.
http://wiki.summercode.com/ - Many articles and tips about programming, patterns, language, SCMs, server administration and other stuff.
http://careers.stack...ergey-kuznetsov - CV page.
#8
Posted 26 January 2010 - 05:01 AM
Fixed horizontal scroll, removed borders from yiidebugpanel, fixed fonts for yiidebugpanel.
You could download fixed version here: http://www.yiiframew...rdersfix.tar.gz
http://wiki.summercode.com/ - Many articles and tips about programming, patterns, language, SCMs, server administration and other stuff.
http://careers.stack...ergey-kuznetsov - CV page.
#9
Posted 09 May 2010 - 02:24 PM
Is it possible to change position of the toolbar e.g. to bottom, right, left?
I have couple toolbars and need to fit both

Thanks,
CoLT
#11
Posted 12 May 2010 - 06:04 PM
One thing I noticed in the docs is that it says to include the application.extensions.yiidebugtb.* in the autoload config. You actually do not need to do this if you simply directly reference the XWebDebugRouter class in the config like so:
array( 'class'=>'application.extensions.yiidebugtb.XWebDebugRouter', 'config'=>'alignLeft, opaque, runInDebug, fixedPos, collapsed, yamlStyle', 'levels'=>'error, warning, trace, profile, info', ),
#13
Posted 27 December 2010 - 02:55 AM
I am new at yii, basically new at any framework in php. I cannot get the yiidebugtb to work. I have followed all the instructions but am still not able to see the dialog box.
details
PHP Version 5.3.1
yii-1.1.5
yiidebug-1.0.x-1.1.x-trace-fix
Kindly help me. I dont know what I am missing
Regards,
Sarfraz
#14
Posted 27 December 2010 - 03:07 AM
If you did... can you post here your config... (protected/config/main.php)
#15
Posted 18 January 2011 - 08:11 AM
So, if anyone face problems seeing the toolbar try adding ::1 to this list.
Cheers
#16
Posted 21 January 2011 - 01:37 PM
How to use it?
#17
Posted 21 January 2011 - 01:41 PM
prchakal, on 21 January 2011 - 01:37 PM, said:
How to use it?
Did you configure allowIPs array in the config file? And if you did that and don't see anything at all, check your local ip address (check previous to yours post in this thread).
http://wiki.summercode.com/ - Many articles and tips about programming, patterns, language, SCMs, server administration and other stuff.
http://careers.stack...ergey-kuznetsov - CV page.
#18
Posted 16 May 2011 - 07:11 PM
CDbConnection::getStats()
And maybe some more info about DB?
Thanks in advance
#19
Posted 19 June 2011 - 12:21 PM
At the moment the session detail outputs the session Data keys with one missing letter at the start of the session key
PHP: Key: 'd02e100655545c339f4ff0fb76506e2' Data: _id: '1' // should be __id _name: 'kokomo' // should be __name eg_date: '2011-01-16 23:41:38' // should be reg_date
public static function sessionAsArray() ... foreach ($_SESSION as $key=>$value) { if (is_null($sessKeyLen)) { $values['PHP']['Key'] = substr($key, 1, strpos($key, '_')-1); // actual code //sessKeyLen = strlen($values['PHP']['Key'])+2; // correct code sessKeyLen = strlen($values['PHP']['Key'])+1; // +1 instead of +2 } $phpSession[substr($key, $sessKeyLen)] = $value; } ...
Sorry that I post the bug here but I don't use GitHub so I don't have an account.
#20
Posted 19 June 2011 - 12:50 PM
kokomo, on 19 June 2011 - 12:21 PM, said:
...
http://wiki.summercode.com/ - Many articles and tips about programming, patterns, language, SCMs, server administration and other stuff.
http://careers.stack...ergey-kuznetsov - CV page.