freddymu / profilertoolbar

ProfilerToolbar for kohana framework

Home Page:http://alertdevelop.ru/projects/profilertoolbar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ProfilerToolbar v0.0.2 beta for Kohana 3.2

ProfilerToolbar it is another realization of the DebugToolbar written by Aaron Forsander, but has additional features.

Demo and description: http://alertdevelop.ru/projects/profilertoolbar

Usage

  • Download project and put files into a folder called 'profiletoolbar' under modules.
  • Enable Module. IMPORTANT! The ProfilerToolbar must be connected before modules of Cached and Database. Because the ProfilerToolbar replaces some files of them.
Kohana::modules(array(
   ...
   'profilertoolbar' => MODPATH.'profilertoolbar',
   'cache'           => MODPATH.'cache',
   'database'        => MODPATH.'database',
   ...
));
  • In the main template write:
<html>
  <body>
    ...
    content
    ...
    <?php ProfilerToolbar::render(true);?>
  </body>
</html>
  • rejoice!

How to add your data

Example:

ProfilerToolbar::addData('first tab','test string');
ProfilerToolbar::addData('first tab',rand(1, 1000)/ rand(1, 1000));
ProfilerToolbar::addData('first tab',$user);
ProfilerToolbar::addData('first tab',$this->request->headers());
ProfilerToolbar::addData('second tab','other data');

About

ProfilerToolbar for kohana framework

http://alertdevelop.ru/projects/profilertoolbar