Skip to content
Nolan Chou edited this page May 27, 2015 · 3 revisions

Debug

Quick

#####1. Edit Template config (/conf/template.php), Add display callback.

    'callback' => array(
        'display' => function($debug)
        {
            if ($debug)
                \pt\framework\debug::show();
        },
    ),

#####2. Print some message

use pt\framework\debug as debug;
debug::log("This is debug");

#####3. Print trace in class or function.

debug::trace();

Config

Not have anything.

Information

  • License Agreement
  • Change Log

Tutorial

Advanced

  • Dynamic expansion of class
  • Callback
  • Hook

Tools

  • File
  • Image
  • Page
  • String
  • Upload
  • Action (hook)
  • Filter (hook)
Clone this wiki locally