Login   Register  
PHP Classes
elePHPant
Icontem

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of solomongaby  >  LiteTplEngine  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: instruction file
Class: LiteTplEngine
Template engine based on PHP scripts
Author: By
Last change: small changes
Date: 6 years ago
Size: 1,259 bytes
 

Contents

Class file image Download
Introduction :

I made this class because i belive that using template engines like Smarty or other ones that used compiled templates and have a special syntax are only going to make the application slower. 
PHP has already a build template system, why not take advantage of it ?
Some people are saying that template systems are easyer because the designer doenst need to lear php, well what the diference between :
		{foreach},{/foreach} and <?php foreach : ?>,<?php endforeach; ?>
The tags might be a bit longer, but it will increase you application speed. Plus it will allow you to place some php in your templates .. that other templates engines dont allow you to.

Steps to install the LiteTplEngine :
- copy all the files to youre website.

- make sure to make the folders images, java, styles in the templates/default folder .. 
this is where you will store the images, javascripts files and css files .. prety self explanetary :D

- add a folder templates_c in the templates/default folder and make sure you set the rights 777 to it ... so php can write into it ... 
 will all the compressed css and js files will be saved

next try and see how i made a simple page. For any quoestions :
YM: solomongaby
MSN: solomongaby@yahoo.com