- version 3.6
Check those constraints:
$this->anything()
| <?php | |
| class ArticlesController extends AppController | |
| { | |
| public $components = array('Paginator'); | |
| public function test() | |
| { | |
| $this->Paginator->settings['Article'] = array( | |
| 'contain' => array('Category' => array( | |
| 'conditions' => array('Category.id' => 2) |
| <?php | |
| // model/Article.php | |
| App::uses('AppModel', 'Model'); | |
| class Article extends AppModel | |
| { | |
| public $hasAndBelongsToMany = array( | |
| 'Category' => | |
| array( |
| <?php | |
| class Foo {} | |
| $a = null; | |
| $f = new Foo($a = 123); | |
| var_dump($a); | |
| // NULL | |
| class Foo { function __constructor(){} } | |
| $a = null; | |
| $f = new Foo($a = 123); |
| <?php | |
| /** | |
| * Cli class to work with PHP command line | |
| * | |
| * @Author Shaharia Azam | |
| * @URI http://www.shahariaazam.com | |
| */ | |
| class Cli | |
| { |
| <?php | |
| require_once __DIR__ . '/../vendor/autoload.php'; | |
| use Slim\Environment; | |
| class RoutesTest extends PHPUnit_Framework_TestCase | |
| { |
| <?php | |
| class ColorCLI { | |
| static $foreground_colors = array( | |
| 'bold' => '1', 'dim' => '2', | |
| 'black' => '0;30', 'dark_gray' => '1;30', | |
| 'blue' => '0;34', 'light_blue' => '1;34', | |
| 'green' => '0;32', 'light_green' => '1;32', | |
| 'cyan' => '0;36', 'light_cyan' => '1;36', |
| # Apache config | |
| <FilesMatch ".(eot|ttf|otf|woff)"> | |
| Header set Access-Control-Allow-Origin "*" | |
| </FilesMatch> |
| <?php | |
| // This file is generated by Composer | |
| require_once 'vendor/autoload.php'; | |
| $client = new \Github\Client(); | |
| $client->authenticate('githubusername', 'githubpassword', Github\Client::AUTH_HTTP_PASSWORD); | |
| /*$repositories = $issue = $client->api('issue')->all('shahariaazam', 'cakephp-quick-start'); | |
| //var_dump($repositories); die();*/ |
| <!DOCTYPE html> | |
| <html class="no-js"> | |
| <head> | |
| <meta charset='UTF-8'> | |
| <title>Simple Loader</title> | |
| <style> | |
| /* This only works with JavaScript, |