Explain what is routing? What are the three segments for routing is important?
Answer Posted / Amit Katiyar
Routing in MVC Model View Controller is a process that maps incoming HTTP requests to specific controllers and actions based on URL patterns. The URL is broken down into segments, which are important components of the route:n1. Route: A general pattern or template that matches incoming requests.n2. Controller: The class responsible for handling the request and interacting with the model.n3. Action: A method within a controller that processes the request and returns a response.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers