PHP Classes

IDtpl: Template engine based on PHP template scripts

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
Not enough user ratingsTotal: 279 All time: 7,625 This week: 455Up
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: 36
All time rank: 211462 in Russian Federation Russian Federation
Week rank: 164 Up10 in Russian Federation Russian Federation Up

  Files folder image Files (11)  
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 (11)  /  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

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:279
This week:0
All time:7,625
This week:455Up