Skip to content

Instantly share code, notes, and snippets.

View ikhsan017's full-sized avatar

Ikhsan Agustian ikhsan017

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