7
Request Control and Data View
This chapter will demonstrate how to use the Laminas implementations for the controller and view layers in an MVC application. We will start with a brief review of the relationship between PHP and Hypertext Transfer Protocol (HTTP). We will look at how Laminas deals with HTTP requests and responses. After that, we will implement the controllers and views of the Inventory
module, that is, we will learn how a module works in the Laminas MVC. Finally, we will learn how to create a page controller and page templates, along with learning about how a page controller works.
In this chapter, we’ll be covering the following topics:
- Understanding the relationship between HTTP and PHP
- The request life cycle in the Laminas MVC
- Implementing CRUD with a controller and view pages
By the end of this chapter, you will be able to implement a registration using a Laminas module with an MVC pattern and you will understand how the laminas...