File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ Register the bundle in `app/AppKernel.php`:
3737
3838``` php
3939// app/AppKernel.php
40-
4140public function registerBundles()
4241{
4342 return array(
@@ -51,7 +50,6 @@ Register the routing definition in `app/config/routing.yml`:
5150
5251``` yml
5352# app/config/routing.yml
54-
5553fos_js_routing :
5654 resource : " @FOSJsRoutingBundle/Resources/config/routing/routing.xml"
5755` ` `
6664
6765Add these two lines in your layout:
6866
69- ` ` ` html
67+ ` ` `
7068<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
7169<script src="{{ path('fos_js_routing_js', {"callback" : " fos.Router.setData" }) }}"></script>
7270` ` `
@@ -76,7 +74,7 @@ add the two JavaScript files above loaded at some point in your web page.
7674
7775### Generating URIs
7876
79- Then, it 's as simple as calling:
77+ It 's as simple as calling:
8078
8179` ` ` javascript
8280Routing.generate('route_id', /* your params */)
@@ -113,7 +111,7 @@ Or using annotations:
113111 */
114112 public function exposedAction($foo)
115113
116- You can do :
114+ You can use the ` generate()` method that way :
117115
118116` ` ` javascript
119117Routing.generate('my_route_to_expose', { id: 10 });
You can’t perform that action at this time.
0 commit comments