Skip to content

Instantly share code, notes, and snippets.

<?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
{
<?php
namespace App\Controller;
use App\Controller\AppController;
/**
* Bookmarks Controller
*
* @property App\Model\Table\BookmarksTable $Bookmarks
*/
<?php
App::uses('ArticlesController', 'Controller');
/**
* ArticlesController Test Case
*
*/
class ArticlesControllerTest extends ControllerTestCase {
/**
@markstory
markstory / AppController.php
Last active August 29, 2015 14:23
issue 6900
<?php
namespace App\Controller;
use Cake\Controller\Controller;
/**
* Application Controller
*
* Add your application-wide methods in the class below, your controllers
* will inherit them.
@markstory
markstory / fileheader_conflict_fixer.py
Created January 27, 2010 14:21
Used to fix annoying and widespread conflicts
#! /usr/bin/env python
import os, re
def main():
"""Fix the stupid merge conflicts.."""
for root, dirs, files in os.walk('.'):
if '.git' in dirs:
dirs.remove('.git') # don't visit .git directories