Closed hfossli closed 10 years ago
Hi
In this example the article is an optional parameter.
open/edition/:editionId open/edition/:editionId/article/:articleId
In kohana in php I can setup optional stuff by adding some paranthesis. Like this
open/edition/:editionId(/article/:articleId)
This is now implemented on the 2.0 branch. For more information, check out the tests: https://github.com/joeldev/JLRoutes/blob/2.0/JLRoutesTests/JLRoutesTests.m#L448
It even supports wildcards. :)
Hi
In this example the article is an optional parameter.
In kohana in php I can setup optional stuff by adding some paranthesis. Like this