Giter Club home page Giter Club logo

Comments (6)

spolischook avatar spolischook commented on July 16, 2024

The same as #85 but I still have empty routes (

from fosjsroutingbundle.

willdurand avatar willdurand commented on July 16, 2024

Wow, could you please rephrase your question?

from fosjsroutingbundle.

spolischook avatar spolischook commented on July 16, 2024

I do all like in guide, but the output of /js/routing?callback=fos.Router.setData is:

fos.Router.setData({"base_url":"\/app_dev.php","routes":[],"prefix":"","host":"localhost","scheme":"http"});

and Routing.generate not work
I try fos:js-routing:dump command and replace

<script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"></script>

to

<script src="/js/fos_js_routes.js"></script>

but still have the same.
So, I try to find how command have dump the routes. And I find that if I remove check for expose option in router here - https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/blob/master/Extractor/ExposedRoutesExtractor.php#L97 - all works fine, and I have dump all my routes.

from fosjsroutingbundle.

willdurand avatar willdurand commented on July 16, 2024

Yeah, because you have to configure the exposed routes, either by adding a expose option, or by using a regular expression pattern: https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/blob/master/Resources/doc/README.markdown#usage.

from fosjsroutingbundle.

spolischook avatar spolischook commented on July 16, 2024

Oh, I see! Thank you very much!

from fosjsroutingbundle.

jim1987 avatar jim1987 commented on July 16, 2024

look this, it's helpful
http://symfony.com/doc/current/cookbook/console/sending_emails.html#configuring-the-request-context-globally

from fosjsroutingbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.