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 ...
Get PHP Web Development with Laminas now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.