Recommend this page to a friend! |
Download .zip |
Info | View files (15) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2008-07-21 (8 years ago) | Not enough user ratings | Total: 486 | All time: 5,620 This week: 936 |
Version | License | PHP version | Categories | |||
litetplengine 0.9 | GNU General Publi... | 4.3 | Templates |
Description | Author | ||||||||||||||
This class implements a template engine based on PHP script templates. |
|
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 |
Files |
File | Role | Description | ||
---|---|---|---|---|
includes (2 files) | ||||
templates (1 directory) | ||||
common.php | Aux. | example file | ||
common_bottom.php | Aux. | end script execution file | ||
index.php | Example | example file | ||
readme.txt | Doc. | instruction file |
Files | / | includes |
File | Role | Description |
---|---|---|
templateEngine.php | Class | main class file |
templateSetup.php | Class | template class setup |
Files | / | templates | / | default |
File | Role | Description | ||
---|---|---|---|---|
images (1 file) | ||||
javascript (1 file) | ||||
styles (1 file) | ||||
templates_c (1 file) | ||||
index.php | Aux. | template file | ||
_home.php | Aux. | template file | ||
_leftMenu.php | Aux. | template file | ||
_overallFooter.php | Aux. | template file | ||
_topBaner.php | Aux. | template file |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.