HTML and CSS Reference
In-Depth Information
Chapter 8
Building the Back End: Part 1
So far in the app development process, most of the efforts have been targeted at the front end of the site. In this
chapter, you'll be building the back-end scripts that will power the front end.
Rolling Your Own Simple MVC Framework
Before you can build the app, your first task is to build a framework for it. As we determined previously, a Model-View
Controller (MVC) framework will be the best option in this particular build.
In this section, you'll build an MVC framework from scratch. This is a complex task, so we've built it across two
chapters. In this first chapter you'll set up the framework for the home page and some of the logic behind it, and in
Chapter 9 we'll fill out the MVC structure and complete the application.
Determining the Directory Structure
A good app starts with proper organization. In your web root folder, create two folders and add the subfolders as shown:
assets
images
scripts
styles
system
config
controllers
core
inc
lib
models
views
We'll cover what each of these folders is for as we build the app; for now, rest assured that this app will be
well-organized.
 
Search WWH ::




Custom Search