Skip to content

Commit

Permalink
mode instruction to view demo pages (symfony 3+)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saad Tazi committed Feb 16, 2018
1 parent 6bb37e9 commit d7aa435
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Expand Up @@ -100,7 +100,9 @@ Or you can use the following method:
}
```

Optional: If you want to see the demo page, add the following to your routing.yml (requires Twig):
# Demo pages

This is optional: If you want to see the demo page, add the following to your routing.yml:

``` yaml
_demo:
Expand All @@ -109,6 +111,14 @@ Optional: If you want to see the demo page, add the following to your routing.ym
prefix: /gchart
```

You should have `templating` installed (`php ../composer.phar require templating`) and should have activated it in `config/packages/framework.yml:

```
framework:
templating:
engines: ['twig']
```

Then you should be able to go to http://your.site.com/gchart/demo

Don't forget to include the required javascript in your layout, for example:
Expand Down

0 comments on commit d7aa435

Please sign in to comment.