Skip to content

Instantly share code, notes, and snippets.

<?php
namespace App\Model\Table;
use Cake\ORM\Table;
class OpportunitiesTable extends Table {
public function initialize(array $config){
$this->table("DAS_Opportunity");
}
}
# This requires capistrano 2.x and fails horribly with 3.x
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
load 'config/deploy' # remove this line to skip loading any of the default tasks
@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.
<?php
App::uses('ArticlesController', 'Controller');
/**
* ArticlesController Test Case
*
*/
class ArticlesControllerTest extends ControllerTestCase {
/**
<?php
namespace App\Controller;
use App\Controller\AppController;
/**
* Bookmarks Controller
*
* @property App\Model\Table\BookmarksTable $Bookmarks
*/
<?php
namespace Test;
use PHPUnit_Framework_TestSuite;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use RegexIterator;
class TestSuite extends PHPUnit_Framework_TestSuite
{
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* User Entity.
*/
class User extends Entity
{
<?php
namespace App\Shell;
use Cake\Console\Shell;
use Cake\Event\EventManager;
class EventShell extends Shell
{
public function main()
{
<?php
namespace App\Controller;
use Cake\Form\Form;
use App\Controller\AppController;
class UsersController extends AppController
{
public function contact()
{
=====> 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...