PHP Classes

IDtpl: Template engine based on PHP template scripts

Recommend this page to a friend!
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 279 This week: 1All time: 7,616 This week: 560Up
Version License PHP version Categories
idtpl 1.4GNU General Publi...5.0PHP 5, Templates
Description 

Author

This class implements a template engine based on PHP template scripts.

It assigns template variables that are stored in an array class variable.

The class processes a template by including it as PHP code that can access the template variables by accessing the entries of an array named $d.

The class captures the output of the included template file and can return it as a string or displayed as the current script output.

New version allows template_in_template calls.

Picture of Valentin
Name: Valentin <contact>
Classes: 6 packages by
Country: Russian Federation Russian Federation
Age: 35
All time rank: 211262 in Russian Federation Russian Federation
Week rank: 411 Up22 in Russian Federation Russian Federation Up

  Files folder image Files  
File Role Description
Files folder imagetemplates (6 files)
Plain text file idtpl.class.php Class template class itself
Accessible without login Plain text file example1.php Example example script (1)
Accessible without login Plain text file example2.php Example example script (2)
Accessible without login Plain text file example3.php Example example script (3) shows how you can send e-mail with templates
Accessible without login Plain text file example4.php Example example script (4) shows how you can use template_in_template calls

  Files folder image Files  /  templates  
File Role Description
  Accessible without login Plain text file tpl_in_tpl.tpl Data template
  Accessible without login Plain text file mail_headers.tpl Data template
  Accessible without login Plain text file mail_template.tpl Data template
  Accessible without login Plain text file header.tpl Data template
  Accessible without login Plain text file content.tpl Data template
  Accessible without login Plain text file footer.tpl Data template

 Version Control Unique User Downloads Download Rankings  
 0%
Total:279
This week:1
All time:7,616
This week:560Up