Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Template{
- private $template, $params, $values;
- function addVariable($param, $value){
- $this->params[] = $param;
- $this->values[] = $values;
- }
- function parse(){
- return = str_replace($this->params, $this->values, $this->template);
- }
- function __construct($file){
- $this->template = file_get_contents($file);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement