This bundle does not require configuration, but it needs to be correctly placed (by executing the
assets:install command) and it needs to be added to the
routing section. First, add the following to
app/config/routing.yml at the end:
fos_js_routing: resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"
Next, issue the following command:
$ php app/console assets:install --symlink web/
Then, modify the
Routing object and the
Routing.generate() method with the same parameters as Twig’s
path() function. However, note that
FOSJSRoutingBundle only generates the routing specifically exposed to JS. We will handle this later when we add our API controller.
IT is more important than ever in the world of higher education, and yet with…