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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.