concept structure in category php

appears as: structure, structure
Zend Framework in Action

This is an excerpt from Manning's book Zend Framework in Action.

In this chapter, we will discuss what Zend Framework is and why you should use it, and we’ll look at some of the design philosophies behind it. This introduction to the framework will act as a guide for the rest of the book and it will help make the design decisions behind each component clearer. Let’s start by looking at how Zend Framework can provide structure for a website’s code base.

Most developers begin to introduce structure to a website’s code by default, and the concept of reusability dawns. Generally, this means that the code that connects to the database is separated into a file called something like db.inc.php. Having separated out the database code, it then seems logical to separate out the code that displays the common header and footer elements on every page. Functions are then introduced to help solve the problem of global variables affecting one another by ensuring that variables live only within the scope of their own function.