PHP Classes
elePHPant
Icontem

File: ParseHTMLfunction

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Minnur Yunusov  >  Parse HTML Template. Beta 3.5  >  ParseHTMLfunction  >  Download  
File: ParseHTMLfunction
Role: Example script
Content type: text/plain
Description: Simple function witch provides to use this class.
Class: Parse HTML Template. Beta 3.5
Process templates using regular expressions
Author: By
Last change: New function for Parse HTML Template. Beta 3.5
Date: 7 years ago
Size: 577 bytes
 

Contents

Class file image Download
<?php

/*

  @author: Minnur Yunusov (mmyunusov@gmail.com)
  @date: 12 March 2007
  @about: Additional function to T.Parse.HTML.class.php

  function HTML ( arguments [array], tpl_name [string] ) [string]
  e.g:
    echo HTML(array('key' => 'replaced value'), 'tmp/test');
 
*/

 
function HTML($array, $tpl_name) {
    global
$dir_array;
    require_once(
$dir_array[3]."T.Parse.class.php");
   
$CallClass = new ParseHTMLTemplate ($tpl_name, $array);
   
$CallTemplate = $CallClass -> ParseHTMLTemplate ();
    return
$CallTemplate;
  }

?>