- version 3.6
Check those constraints:
$this->anything()
<?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();*/ |
# Apache config | |
<FilesMatch ".(eot|ttf|otf|woff)"> | |
Header set Access-Control-Allow-Origin "*" | |
</FilesMatch> |
<?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', |
<?php | |
require_once __DIR__ . '/../vendor/autoload.php'; | |
use Slim\Environment; | |
class RoutesTest extends PHPUnit_Framework_TestCase | |
{ |
<?php | |
/** | |
* Cli class to work with PHP command line | |
* | |
* @Author Shaharia Azam | |
* @URI http://www.shahariaazam.com | |
*/ | |
class Cli | |
{ |
<?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 | |
// model/Article.php | |
App::uses('AppModel', 'Model'); | |
class Article extends AppModel | |
{ | |
public $hasAndBelongsToMany = array( | |
'Category' => | |
array( |
<?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) |
<div class="panel panel-default"> | |
<div class="panel-heading"> | |
<h3 class="panel-title">02 RAMADAN - RAHMAT</h3> | |
</div> | |
<div class="panel-body"> | |
<h1>29 June 2014</h1> | |
<h2>(SUNDAY)</h2> | |
<h3 class="sehri">Sehri: 03:42 AM</h3> | |
<h3 class="iftar">IFTAR: 06:49 PM</h3> | |
</div> |