O'Reilly logo

Pro PHP MVC by Chris Pitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required