Chapter 8. Routing, Responses, and Events
Like many modern web frameworks, Yii2 is built with a powerful router component, which we can utilize to handle a variety of URIs coming from both our end users and application. This functionality is further enhanced by Yii2's powerful request and response handlers, which we can use to manipulate request and response bodies. In this chapter, we'll cover the basics of how to manipulate Yii2's URL Manager to adjust routes, explore how to configure Yii2 to respond in different ways, and learn how to send and listen to events within our application.