Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Developer Shed Network Server Side Php Template Based Web Development With Pattemplate Part 1

Developer Shed Network Server Side Php Template Based Web Development With Pattemplate Part 1

Ratings: (0)|Views: 7 |Likes:
Published by Unknown

More info:

Published by: Unknown on Jul 16, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/12/2014

pdf

text

original

 
By Team Melonfire
This article copyrightMelonfire2000−2002. All rights reserved.
 
Table of Contents
Looking For Alternatives...................................................................................................................................1Hard Sell..............................................................................................................................................................2Message In A Bottle............................................................................................................................................3Anatomy Of A Template Engine.......................................................................................................................4Slice And Dice......................................................................................................................................................7Music To Your Ears............................................................................................................................................9Watching The Clock.........................................................................................................................................11A Bookworm In The Ointment........................................................................................................................15A Rose By Any Other Name............................................................................................................................20
Template−Based Web Development With patTemplate (part 1)i
 
Looking For Alternatives
One of the nice things about PHP − and one of the primary reasons for its popularity as a rapid applicationdevelopment (RAD) tool − is the fact that PHP code can be inserted into regular HTML markup to turnotherwise static HTML content into dynamic, intelligent Web pages. This feature makes it possible to quicklywrite PHP scripts that build Web pages on the fly from a database (or other external data source), and tocreate "smart" Web applications more efficiently than would otherwise be possible with traditionalprogramming languages like Java or Perl.However, this ease of use comes with a price: most PHP−based Web sites are a mush of intermingled HTMLmarkup and PHP function calls, making them hard to decipher and maintain. This problem most commonlyrears its ugly head when interface designers need to alter the user interface presented to Web site visitors −since the presentation information is entwined with PHP code, changes to it typically require handholding bya developer with sufficient expertise in the language. Which ultimately means more people, more time andmore money...There is, however, an alternative.This alternative solution involves using "templates" to separate presentation and layout information fromprogram code, and a template engine to combine the two to create the final product. This two−tiered approachaffords both developers and designers a fair degree of independence when it comes to maintaining a Web site,and can substantially reduce the time and effort required in the post−release phases of a development project.Despite these advantages, this template−based approach is not that popular − or even that well−known −amongst developers, especially those that are new to Web development. And so, over the course of thistwo−part article, I will be attempting to demystify how it works, in the hope that it will encourage you to useit in your next development effort.Which is where patTemplate comes in...
Looking For Alternatives1

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->