Preface

About The Book

The goal of a Model-View-Controller (MVC) framework is to allow developers to easily separate their code in distinct aspects to simplify development tasks. The model layer allows us to integrate with data; usually a database table. The view layer allows us to represent our data in a visual fashion using a combination of HTML and CSS. The controller layer is the middleman between the model and view. The controller is used to retrieve data from a model and make that data available for a view.

The goal of this book is to provide web developers a cookbook of “recipes” that are required by many developers on a day-to-day basis. Each code sample contains a complete working example of how to implement authentication, email, AJAX, data validation, and many other examples. You will quickly find yourself referring to one of these samples for every website that you build.

Prerequisites

Before beginning with this book, it is important to have a good understanding of web development. This book is heavily focused on providing useful code samples. Each code sample is well described; however, it is assumed that the reader is already familiar with many aspects of web development.

I would highly recommend reviewing ASP.NET’s MVC website before starting. Within a few quick minutes you will be up-to-speed and ready to go—it’s that easy.

Conventions Used in This Book

The following typographical conventions are used in this book:

Italic

Indicates new terms, URLs, email addresses, filenames, ...

Get 20 Recipes for Programming MVC 3 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.