This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
App::uses('AppModel', 'Model'); | |
/** | |
* Article Model | |
* | |
* @property Comment $Comment | |
*/ | |
class Article extends AppModel { | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=====> 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... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
use Cake\Form\Form; | |
use App\Controller\AppController; | |
class UsersController extends AppController | |
{ | |
public function contact() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Shell; | |
use Cake\Console\Shell; | |
use Cake\Event\EventManager; | |
class EventShell extends Shell | |
{ | |
public function main() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Model\Entity; | |
use Cake\ORM\Entity; | |
/** | |
* User Entity. | |
*/ | |
class User extends Entity | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Test; | |
use PHPUnit_Framework_TestSuite; | |
use RecursiveDirectoryIterator; | |
use RecursiveIteratorIterator; | |
use RegexIterator; | |
class TestSuite extends PHPUnit_Framework_TestSuite | |
{ |