From 65cd87a55d78e62a49f1de80613c796d5fc693de Mon Sep 17 00:00:00 2001 From: Maxence d'Espeuilles Date: Sat, 8 Apr 2017 11:20:41 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 88 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 356151b..e82fb26 100644 --- a/README.md +++ b/README.md @@ -1 +1,88 @@ -# MetaBundle +MetaBundle +========== + +This bundle provides an easy way to set meta tag directly from the front. +The principe is very simple. Just click on the "Meta" tab which appears on +your front and set meta data for the page. + +## Installation + +### Step 1: Install with composer + +To install MetaBundle with Composer just type in your terminal: + +```bash +php composer.phar require mdespeuilles/metabundle +``` + +### Step 2: Register the bundle + +Now update your ``AppKernel.php`` file, and +register the new bundle: + +```php + + +``` + +You should display this form only to granted roles you can simply add a condition to display it. +For exemple : + +```twig +{% if is_granted('ROLE_SUPER_ADMIN') %} + {{ render(controller('MdespeuillesMetaBundle:Meta:meta', {request: app.request})) }} + + +{% endif %} +``` + +## Usage + +Just click on the "Meta" tab which appears on +your front and set meta data for the page. From 72e7b1e6792c35ebd83a44cd0cda7097f30aff75 Mon Sep 17 00:00:00 2001 From: Maxence d'Espeuilles Date: Sat, 8 Apr 2017 11:30:09 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e82fb26..4925eeb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ MetaBundle ========== + + This bundle provides an easy way to set meta tag directly from the front. The principe is very simple. Just click on the "Meta" tab which appears on your front and set meta data for the page.