Login   Register  
PHP Classes
elePHPant
Icontem

File: cls_fast_template.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Valics Lehel  >  Fast Template  >  cls_fast_template.php  
File: cls_fast_template.php
Role: Class source
Content type: text/plain
Description: Main Class File
Class: Fast Template
Updated revision of CDI Fast Template engine
Author: By
Last change: 1.6.2 Changes:

error return for capture on empty template filename.

1.6.1 Changes:

$template = ereg_replace ( "{([A-Za-z0-9_\.]+)}", "", $template ); - it was introduced a-z, because the regex used in the line to remove unset variables only checked for all caps, while lowercase variables are allowed by the class.

var $REWRITE_TEMPLATE_PATH = array ("../",""); - this is an example, you can replace anything. The ideea behind this addition is that on visual editors, the paths from template directory is usually ../images/filename.gif or @import "../css/other.css";, but in the real world (when you call it on the site) require images/filename.gif or @import "css/other.css";. So we replace ../ with nothing. Very useful in visual editors like Adobe Dreamweaver.
Date: 5 years ago
Size: 72,631 bytes

You need to be a registered user and login to get this file.

1,282,958 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

Facebook ConnectGmail or other Google AccountHotmail or Microsoft Windows LiveStackOverflowGitHubYahoo