Skip to content

Instantly share code, notes, and snippets.

@CarsonF
CarsonF / dump.php
Created July 17, 2015 14:12
Dumps pimple container for silex plugin
<?php
use Sorien\Provider\PimpleDumpProvider;
use Symfony\Component\HttpFoundation\Request;
require_once __DIR__ . '/vendor/autoload.php';
$app = new \Bolt\Application();
$request = Request::create('/');
Request::setFactory(function () use ($request) {
@GwendolenLynch
GwendolenLynch / Bolt Foundation 5 Breadcrumbs
Created February 28, 2015 16:29
Bolt Foundation 5 Breadcrumbs
{% set route = app.request.get('_route') %}
{% set routeparams = app.request.get('_route_params') %}
<div class="row">
<ul class="breadcrumbs hide-for-small">
{% if route == 'homepage' %}
<li class="current"><a href="{{ paths.root }}">Home</a></li>
{% else %}