Login   Register  
PHP Classes
elePHPant
Icontem

File: page1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Karol Krizka  >  HTML Document  >  page1.php  >  Download  
File: page1.php
Role: Example script
Content type: text/plain
Description: This comes with the example file to demonstrate embeding.
Class: HTML Document
Buffer the HTML contents of a page before serving
Author: By
Last change:
Date: 2007-08-18 22:13
Size: 672 bytes
 

Contents

Class file image Download
<?php
include_once 'HTMLDoc.class.php';
HTMLDoc('Page 1');
?>

This is page1 that is eighter embeded in another webpage or is displayed solo. It dosn't really matter which, because the code is independent of it. The best news is that the web page will be valid XHTML document, not caring if it's embeded or not. The title will be automatically appended to any existing titles, and so will be included stylesheets and so on.
<br/><br/>  
  Adding additional stylesheets and other references is very simple. All you have to do is use functions like addStyleSheet('file.css') or addJavaScript('cool.js'). I hope that this PHP class makes your life simpler! It sure helped me.