Skip to Main Content
Pro PHP MVC
book

Pro PHP MVC

by Chris Pitt
October 2012
Beginner to intermediate content levelBeginner to intermediate
500 pages
10h 29m
English
Apress
Content preview from Pro PHP MVC

CHAPTER 8

images

Templates

At the heart of MVC is separation of concerns, and nowhere in our framework is that more important than between the view and the controller. Typically, when one thinks about the front end (or client side) of an application, they think of HTML, CSS, and JavaScript. Throw in server-side interaction, and an unavoidable portion of PHP enters the picture.

What’s worse is we will often need to work with data, supplied to us by the controller, using PHP directly in our views. Many people have tried solving this problem with template languages (and parsers). It might not make a whole lot of sense—substituting PHP for yet another intermediary ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro PHP Programming

Pro PHP Programming

Peter MacIntyre, Brian Danchilla, Mladen Gogala
Ajax Design Patterns

Ajax Design Patterns

Michael Mahemoff

Publisher Resources

ISBN: 9781430241645Purchase book