Skip to content

Instantly share code, notes, and snippets.

Avatar

Ikhsan Agustian ikhsan017

View GitHub Profile
@ikhsan017
ikhsan017 / Route.php
Last active Aug 29, 2015
Silex route static proxy
View Route.php
<?php
use Silex\Application;
use Silex\ControllerCollection;
class Route{
/** controllers context stack */
protected static $contextStack = [];
@ikhsan017
ikhsan017 / gist:8514609
Created Jan 20, 2014
Laravel base controller
View gist:8514609
<?php
use Illuminate\Routing\Controller;
class BaseController extends Controller {
/**
* container for data, assets, js variables etc
* @var array
*/
protected $data = array();