Skip to content

Instantly share code, notes, and snippets.

Idea for future DebugKit.
The current debug kit does a bunch of things right, but has a few short comings that are hard to address in the current design:
* DebugKit is slow - generating the HTML for the toolbar in the originating request is not fast, and DebugKit bloats every request with mountains of HTML.
* DebugKit is easily disrupted by the host page CSS - Having DebugKit on the host page means it is difficult to deliver an excellent UI for debugkit as it frequently gets interference from the host page.
* The History Panel is fragile and relies on Cache being enabled.
I think many of these problems can be solved with a few key changes:
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<?php
App::uses('AppModel', 'Model');
/**
* Article Model
*
* @property Comment $Comment
*/
class Article extends AppModel {
/**
<?php
namespace App\Controller;
use App\Controller\AppController;
/**
* Tags Controller
*
* @property App\Model\Table\TagsTable $Tags
*/
<?php
App::uses('AppController', 'Controller');
class TasksController extends AppController {
public $components = ['Session', 'Paginator', 'RequestHandler'];
public function index() {
$this->Task->recursive = 0;
$this->Paginator->settings = $this->paginate;
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-php.git
=====> Detected Framework: PHP
-----> No runtime requirements in composer.json, defaulting to PHP 5.6.3.
-----> Installing system packages...
- PHP 5.6.3
- Apache 2.4.10
- Nginx 1.6.0
-----> Installing PHP extensions...
- zend-opcache (automatic; bundled, using 'ext-zend-opcache.ini')
-----> Installing dependencies...
<?php
namespace App\Controller;
use Cake\Form\Form;
use App\Controller\AppController;
class UsersController extends AppController
{
public function contact()
{
<?php
namespace App\Shell;
use Cake\Console\Shell;
use Cake\Event\EventManager;
class EventShell extends Shell
{
public function main()
{
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* User Entity.
*/
class User extends Entity
{
<?php
namespace Test;
use PHPUnit_Framework_TestSuite;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use RegexIterator;
class TestSuite extends PHPUnit_Framework_TestSuite
{