loicb
loicb

Reputation: 645

Symfony-cmf routing step by step

The symfony-cmf documentation is a nightmare, it is really hard to understand and it seems that many of it is outdated.

I think I have understood the routing concept, but I can't figure how to implement it, clearly.

  1. How to register a router?
  2. How to setup dynamic routing?
  3. How to persist a document and map a route?

Upvotes: 0

Views: 248

Answers (2)

Lukas Kahwe Smith
Lukas Kahwe Smith

Reputation: 646

FYI 1.1 was been released and the documentation has been updated accordingly.

Upvotes: 2

dbu
dbu

Reputation: 1562

I am sorry to hear that. If you run on 1.0, things should not be outdated, except for some cookbook entries which have a note at their head. The 1.1 documentation is not online yet as we currently can only publish one version of the doc. That is only available on github.

Your questions however are answered by both versions:

  1. http://symfony.com/doc/master/cmf/bundles/routing/introduction.html#loading-routers-with-tagging
  2. http://symfony.com/doc/master/cmf/bundles/routing/dynamic.html - also the sandbox is a good example to see this in action
  3. http://symfony.com/doc/master/cmf/bundles/routing/dynamic.html#the-phpcr-odm-route-document

If you have inputs how we can make it easier to find the way through the doc or at which point in the quick tour / book you got lost, please open issues (or even better pull requests) on the symfony-cmf-docs github repository.

Upvotes: 1

Related Questions