PHP Classes

File: cache/eb8282799c4c5249168b05d384a8b867.cache

Recommend this page to a friend!
  Classes of Ákos Nikházy   Small Template Framework   cache/eb8282799c4c5249168b05d384a8b867.cache   Download  
File: cache/eb8282799c4c5249168b05d384a8b867.cache
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Small Template Framework
Output text replacing templates with parameters
Author: By
Last change:
Date: 15 days ago
Size: 1,348 bytes
 

Contents

Class file image Download
<!DOCTYPE html><html><head><meta charset=utf-8><title>Template Example</title><!--The c.php file makes the master.css file a one liner cached stylesheet--><link rel="stylesheet" type="text/css" media="screen" href="css/c.php" /><link rel="shortcut icon" href="css/img/icon.png"></head><body><h1>Template.class Example</h1><div><!--In the template file you find {{tag}} tags. The PHP file replace these for content.-->{{noTag}} this is a tag that is not mentiond by the PHP file. You can add content to it by using<br>$template -> tagList['noTag'] = 'some text'; to fill this<p>This is some text from PHP code in index.php: This is some text</p><ul><li>This item is in index.html template file. The following items are generated by PHP from another template file</li><li>list item - 1</li><li>list item - 2</li><li>list item - 3</li><li>list item - 4</li><li>list item - 5</li><li>list item - 6</li><li>list item - 7</li><li>list item - 8</li><li>list item - 9</li><li>list item - 10</li></ul><p>This is the content. You should use the Text.class to put text in these parts,but for the example I write this here. Also this only makes sense if you seeit in the PHP code in index.php</p><p><div id="other">This div tag comes from the otherHTML.html template file, because the value of the property is null in the PHP code</div></p></div></body></html>