PHP Classes

AbsTemplate: Template engine based PHP script templates

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 44%Total: 1,363 All time: 2,851 This week: 59Up
Version License PHP version Categories
abs_template 1.0MIT/X Consortium ...5PHP 5, Cache, Templates
Description 

Author

This class implements a template engine based PHP script templates and variable replacement.

It can process template PHP scripts that are executed.

The class captures the template scripts output and replaces template variables by assigned values.

The resulting output can be cached in files to avoid template reprocessing overhead.

Picture of Costin Trifan
Name: Costin Trifan <contact>
Classes: 5 packages by
Country: Romania Romania
Age: 46
All time rank: 64712 in Romania Romania
Week rank: 170 Up4 in Romania Romania Up

  Files folder image Files (13)  
File Role Description
Files folder imagetemplates (6 files)
Files folder imagecache (1 file)
Accessible without login Plain text file class.AbsTemplate.php Class The base class
Plain text file example_new Example Example using the default templates' cache expiry time
Accessible without login Plain text file example_caching.php Example Caching example
Accessible without login Plain text file example_db.php Example Display data from database
Accessible without login Plain text file example_default.php Example How to use AbsTemplate. No caching.
Accessible without login Plain text file example_variables.php Example How to pass variables to templates.

  Files folder image Files (13)  /  templates  
File Role Description
  Accessible without login Plain text file content.php Appl. The content template file
  Accessible without login Plain text file footer.php Appl. The footer template file
  Accessible without login Plain text file header.php Appl. The header template file
  Accessible without login Plain text file show_data_db.php Appl. The database connection template file
  Accessible without login Plain text file show_variable.php Appl. The template file displaying a variable set in the parent file.
  Accessible without login Plain text file sidebar.php Appl. The sidebar template file

  Files folder image Files (13)  /  cache  
File Role Description
  Plain text file info.txt Data The folder that stores the cached files

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,363
This week:0
All time:2,851
This week:59Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:58%StarStarStar
Documentation:-
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:44%StarStarStar
Rank:3504