SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 76 | Next

Nirav Mehta

"Mobile Web Development"


Coding Framework
We will use a simple fusebox-style coding framework. You may already be familiar
with this style, but if you are not, it's easy to understand. Take a look at the following
figure. All requests will pass through a central controller??”index.php. Based on the
value of the "action" variable, it will include another file. This action-specific file will
carry out the business logic. At the end, the resulting XHTML will be sent back to the
user's browser. Layout design is defined mainly in the header and footer files.
Request / Response
index.php
Central Controller
header.inc.php
XHTML prolog, CSS,
header markup
footer.inc.php
Footer navigation,
Debug output
prepend.inc.php
Configuration, include
class definitions
action.inc.php
Handler for specific
action. Instantiate
classes and perform
business logic. Also
output XHTML result
Database
???
Building Pizza On The Run
[ 54 ]
Redoing the POTR Homepage
We now know enough to start the actual code. The current POTR homepage promises
people that online ordering will start soon. Let's start by spicing up the homepage!
Our homepage file will be called home.


Pages:
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6