Skip to content

Commit 95da156

Browse files
committed
Tweak doc
1 parent c00a161 commit 95da156

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Resources/doc/index.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ Register the bundle in `app/AppKernel.php`:
3737

3838
``` php
3939
// app/AppKernel.php
40-
4140
public 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-
5553
fos_js_routing:
5654
resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"
5755
```
@@ -66,7 +64,7 @@ Usage
6664
6765
Add 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
8280
Routing.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
119117
Routing.generate('my_route_to_expose', { id: 10 });

0 commit comments

Comments
 (0)