Skip to content

Instantly share code, notes, and snippets.

View FlorianKromer's full-sized avatar

FlorianKromer FlorianKromer

View GitHub Profile
@FlorianKromer
FlorianKromer / Install HWIOAuthBundle with FosUserBundle.md
Created February 7, 2015 18:10
Install HWIOAuthBundle with FosUserBundle
@FlorianKromer
FlorianKromer / 0 Bootstrap navbar with knp-menu-bundle.md
Last active February 18, 2020 11:18
Bootstrap navbar with knp-menu-bundle for symfony2

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

HOW?

Follow the steps!

@FlorianKromer
FlorianKromer / .htaccess
Created January 25, 2015 15:31
htaccess for symfony2 use mod_deflate, mod_filter, mod_expires, mod_headers
# 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, index.pl).
DirectoryIndex app.php
<IfModule mod_rewrite.c>
RewriteEngine On