Re: PHP Template Function

From: Date: Fri, 19 Dec 2003 12:30:57 +0000
Subject: Re: PHP Template Function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-173010@lists.php.net to get a copy of this message
"Cameron B. Prince" <cprince@rideware.com> wrote in message news:012b01c3c58b$207c02f0$5e908781@rwlaptop... > Basically, a directory was defined within the webserver to have a > PerlHandler, Embperl::Object. When any page in or under that directory is > called, Embperl::Object would look for template files in the current > directory and go upward in the tree until they are found and prepend/append > them. There was no code or includes required within the pages themselves. In TemplateTamer, for each page you define the class that is responsible for handling it. In typical site you use this to build a hierarchy of pages something like below: MySitePage --UserPage --NewsPage --ArticlePage --ListPage ... --ContributorPage --EditNewsPage ... --AdminPage --AddUserPage --BackupPage ... You catch my drift. Then NewsPage inhertis from the UserPage, and overides/adds functinality specific to itself, while keeping most of the implementation from the parent UserPage. The organization is not per directory, like in your example, but TT lets you keep your projects files in neat bundle, and helps you with house keeping with template files. It also lets you see your templates in tree view, sith all variables and subtemplates. rush -- http://www.templatetamer.com/

« previous php.general (#173010) next »