can anyone tell me when it is better to use routing in zend framework?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All Zend Framework web applications use ‘routing.’ Even at it’s most basic, default setup.
You don’t really have much choice as to whether or not to use routing. You do have a choice as to how the routing is constructed and how your URLs will look.
Is it better to use custom routing to have “pretty” URLs? It’s an opinion, but I say yes. Custom routes can change ugly things like this:
http://yoursite.com/Users/index/view/id/199to something ‘pretty’ like this:
http://yoursite/user/joeGetting into details as to how to do this can be found in many, many other questions here. Just search for Zend Framework Routing.