Skip to content

Router::reverse() docs missing, inclusion advice desired #6726

@dreamingmind

Description

@dreamingmind

As discussed in this form thread, Router::reverse() is not included in the docs.

I'm interested in adding a section explaining it in docs/en/development/routing.rst

Before I begin I'm looking for input from any interested parties:

Since this document uses the term and concept of reverse routing extensively but does not mention this method, I'm not sure where in the flow of information to include a section on reverse() or how to discuss its behavior without seeming to contradicting or confused the issue.

Any input is welcome.

Routing is not one of the features I am strong on, so I'll be climbing a bit of a hill as I grapple with this document and its content.

My initial thoughts about including these changes

There seem to be 4 specific examples referring to reverse routing. Possibly each of these could include an example using reverse() and some discussion of its use.

And/Or

Beginners on the forum often struggle with the lack of context in the docs (as do I).

So I’m tempted to explain a little more about the why of this feature vs the methods shown. This is a grey area though since in general the Cake Docs just present facts, not reasons.

I don’t know if the .rst docs format allows for collapsible sections (like the detail blocks in the forum) but they would be an ideal place to tuck away a little explanation for users who wanted it.

If there is nothing like this, the page is very long and may benefit from having the from-array-to-url processes broken out to a different page.

And/Or

Mentions of this method and the technique of using the params array directly could be added to the HtmlHelper::link() doc and the PaginatorHelper where several methods can benefit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions