Sam Becker
Sam Becker

Reputation: 19636

In Zend Framework 2, what are the different routing types and how is each one used?

I have defined a module in ZendFramework 2 and I am going through the standard ZF2 tutorial on their website.

In the example given the type is defined like so: 'type' => 'segment'. What are the other types of routes and what are some typical use cases for each one?

Upvotes: 0

Views: 184

Answers (2)

Sam
Sam

Reputation: 16455

In addition to what Jevgeni just posted, you may also be interested in DASPRiDs Router Presentation from ZendCon 2012

Upvotes: 1

bogatyrjov
bogatyrjov

Reputation: 5378

All possible route types are :

'hostname', 'literal', 'part', 'regex', 'scheme', 'segment', 'query', 'method'

The usage of those is described in the official documentation here.

Although, there is one extra type called 'wildcard' which is possible according to the source, but it is not described in documentation.

Upvotes: 1

Related Questions