CHAPTER 9

image

Building the Back-End: Part 2

In the last chapter, you built a working MVC framework and put together the Home controller and view. In this chapter, you’ll complete the back end of the app by building the Question and Room components. This chapter puts the Model class to work, as well as the form submission handling that you built in the previous chapter.

Building the Questions

It might seem backward to build the Question controller before the Room controller, but because the Room controller needs several snippets of markup from the Question controller to output its view, let’s start here and work to the Room controller.

Building the ...

Get Realtime Web Apps: With HTML5 WebSocket, PHP, and jQuery now with O’Reilly online learning.

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