I am working in zend framework 2, I am using segment type for all my routes but I have noticed the use of literal route type in zend skeleton application. What are they?
I guess what Umair is actually asking is, what the purpose of the literal route is, when the segment route already covers this functionality.
To explain it in a few words; The segment route does a rather complex matching on the input with a generated regex, while the literal route will do a simple string comparison. This makes it a lot faster and it should be preferred when no parameter matching is required.