CHAPTER 15

images

Search

In the last chapter, we took our first look at how to use basic views, and perform basic validation. In this chapter, we will look at a few ways to extend our views, as well as building a user search page.

Goals

  • We need to improve our template renderer to be able to include subtemplates, load third-party HTML, and store and retrieve data.
  • We need to create the necessary action and view to facilitate user searching.

In order for us to understand the new template language constructs we will be adding to the template implementation, we need to look at the examples shown in Listing 15-1.

Listing 15-1. Additional Template Grammar ...

Get Pro PHP MVC 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.