Skip to content

Instantly share code, notes, and snippets.

FlorianKromer FlorianKromer

Block or report user

Report or block FlorianKromer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
FlorianKromer / Install HWIOAuthBundle with
Created Feb 7, 2015
Install HWIOAuthBundle with FosUserBundle
View Install HWIOAuthBundle with
FlorianKromer / 0 Bootstrap navbar with
Last active Apr 29, 2017
Bootstrap navbar with knp-menu-bundle for symfony2
View 0 Bootstrap navbar with

Create a navbar menu with knp menu bundle in symfony 2

Why use a bundle to make a menu?

In order to split the dynamic text and the page static template moreover make a breadcrumb become easier. We can also translate the menu, dupplicate it, etc. without rewrite it many time. DRY <3


Follow the steps!

FlorianKromer / .htaccess
Created Jan 25, 2015
htaccess for symfony2 use mod_deflate, mod_filter, mod_expires, mod_headers
View .htaccess
# Use the front controller as index file. It serves as a fallback solution when
# every other rewrite/redirect fails (e.g. in an aliased environment without
# mod_rewrite). Additionally, this reduces the matching process for the
# start page (path "/") because otherwise Apache will apply the rewriting rules
# to each configured DirectoryIndex file (e.g. index.php, index.html,
DirectoryIndex app.php
<IfModule mod_rewrite.c>
RewriteEngine On
You can’t perform that action at this time.