PHP Classes

File: Readme.txt

Recommend this page to a friend!
  Classes of Volkan Küçükçakar   DEV Template Class   Readme.txt   Download  
File: Readme.txt
Role: Documentation
Content type: text/plain
Description: Readme
Class: DEV Template Class
Template engine with theme and insert support
Author: By
Last change:
Date: 18 years ago
Size: 3,685 bytes
 

Contents

Class file image Download
DEV Template Class - Teplate class for PHP - File Name: class.DevTemplate.php Copyright (C) 2005 Volkan Küçükçakar. All Rights Reserved. (Volkan Kucukcakar) http://www.developera.com You are requested to retain this copyright notice in order to use this software. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Info ===== Name : DEV Template Class Version : 0.3 beta Date : 2005.09.04 File : class.DevTemplate.php Author : Volkan Küçükçakar (Volkan Kucukcakar) EMail : volkank@developera.com Home Page : http://www.developera.com Description : DEV TEMPLATE CLASS ***** The main objective of this class is to statically design all of your page HTML with your favorite HTML editor and dynamically insert some parts to it with PHP. Also change the whole "theme" by changing only major_html template. (All other template files will be morphed to it...) Key features: -Very easy to prepare and use. -Single line usage by "express" function. -Morph one template to another. -Recursive insert -Any number of insert tags altough in single line command usage History ======== v0.1: Foundation. v0.2 beta: -Single line usage by "express" function. -Morph one template to another. -Recursive insert -Multiple morph and insert tags v0.3 beta: -some comments Known bugs ========== Problems may occur if there is more than one morph_tag and one morph_tag encapsulate another. This is why i have first designed morphing for single tag usage and its usually adequate. Notes ===== ***** Usually preferred usage is only insert tags (example 1,2) or one morph_tag and multiple insert_tags(example 3) No problems with multiple insert tags... Examples of most common usage ============================= 1- Simple Usage: $DevTemplate->express("_page1.html","","",Array("date=$date")); 2- Recursively Insert: $DevTemplate->express("_page1.html","","",array("hello=HELLO <!--insert:world-->","world=WORLD")); 3- Complex Usage: $DevTemplate->express("_template.html","_page1.html","mainpart",array("hello=HELLO WORLD !","date=$date","title=This page title inserted dynamically..!")); 4- Simple Usage Without Exit: $output_html=$DevTemplate->express("_page1.html","","",Array("date=$date"),false); HTML Tags ========= There is only one tag for simple usage <!--insert:name--> There are two morph_tags for complex usage <!--start:name--> and <!--end:name--> See all example files-comments for tags and more information.