An important aspect (if not the most important one) is the routing within Zend Framework 2. In its most basic form routing tells the framework how the user should get from page A to page B, and what needs to be done to arrive at that destination. That is why we generally think this is the most important part to understand if you are just starting out.
To define a route we can simply go into one of the configuration files and add the router configuration to there.
Let's look at our simple (
Segment) configuration as follows (file:
return array( // Here we define our route configuration 'routes' => array( // We give this route the name 'website' 'website' ...