2017 © Pedro Peláez
 

library templates-panel

A panel for Tracy Debugger in an ATK14 project. Displays nested list of all rendered templates.

image

atk14/templates-panel

A panel for Tracy Debugger in an ATK14 project. Displays nested list of all rendered templates.

  • Friday, April 13, 2018
  • by yarri
  • Repository
  • 2 Watchers
  • 0 Stars
  • 2,665 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 24 % Grown

The README.md

TemplatesPanel

A panel for Tracy Debugger in an ATK14 application. Displays nested list of all rendered templates., (*1)

Basic usage

$bar = Tracy\Debugger::getBar();
$bar->addPanel(new TemplatesPanel());

Usage in an ATK14 application (built upon Atk14Skelet)

Use the Composer to install the panel., (*2)

cd path/to/your/atk14/project/
composer require atk14/templates-panel

Load autoloader from the Composer and enable the Tracy Debugger., (*3)

// file: lib/load.php
require(__DIR__."/../vendor/autoload.php");

if(
  !TEST &&
  !$HTTP_REQUEST->xhr() &&
  php_sapi_name()!="cli" // we do not want Tracy in cli
){
  Tracy\Debugger::enable(PRODUCTION, __DIR__ . '/../log/');
}

Add the TemplatesPanel to the Tracy in _application_after_filter()., (*4)

// file: app/controllers/application_base.php
function _application_after_filter(){
  if(DEVELOPMENT){
    $bar = Tracy\Debugger::getBar();
    $bar->addPanel(new TemplatesPanel($this->dbmole));
  }
}

Licence

TemplatesPanel is free software distributed under the terms of the MIT license, (*5)

The Versions

13/04 2018

dev-master

9999999-dev https://github.com/atk14/TemplatesPanel

A panel for Tracy Debugger in an ATK14 project. Displays nested list of all rendered templates.

  Sources   Download

MIT

The Requires

 

template tracy atk14

13/04 2018

v1.0

1.0.0.0 https://github.com/atk14/TemplatesPanel

A panel for Tracy Debugger in an ATK14 project. Displays nested list of all rendered templates.

  Sources   Download

MIT

The Requires

 

template tracy atk14