How we can set routing in zend framework2?



How we can set routing in zend framework2?..

Answer / Akanksha Chauhan

To set routing in Zend Framework 2, you can follow these steps:
1. Define the route configuration for your module. This is usually done in a module-specific config file (e.g., module/Application/config/module.config.php).
2. Register the route configuration using ModuleManager's onBootstrap event in your module's bootstrap file (Module.php).
3. Use the defined routes in your controllers to map URL patterns to action methods.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Zend Interview Questions

How to include js from controller and view in zend?

1 Answers  


Explain the features of mvc in zend framework?

1 Answers  


I am a minor (under 18 years of age). Who should sign my cla?

1 Answers  


How to access route, post, get etc. Parameters in zend framework 2?

1 Answers  


How to render zf2 view within json response?

0 Answers  


I want to use a sql function or perform calculations in a statement I'm generating with zend_db_select. How can I do this?

1 Answers  


What is the zend file upload and element decorators?

1 Answers  


How we can check post method in zend framework?

1 Answers  


Explain what are the default methods provided by decorators?

1 Answers  


How to disable layout from controller in zend framework?

1 Answers  


How to install zend framework?

1 Answers  


Why are in-built libraries used for the web services?

1 Answers  


Categories