Skip to content

Instantly share code, notes, and snippets.

View ikhsan017's full-sized avatar

Ikhsan Agustian ikhsan017

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