INSTALL

Just include the files class.Css.php and class.CssDispatcher.php and you will be able to use the CssDispatcher.

Example:

<?php

include 'class.Css.php';
include 'class.CssDispatcher.php';

$estilos = new CssDispatcher();

//Creates a new template
$general = new Css('example.css.php');
//Assigns some variables
$general->background = '#eee';
$general->border_color = 'red';
$general->header_size = 2.1;

//Creates another template
$another = new Css('example2.css.php');
$another->bold = 'font-weight: bold';

//Adds the templates to the dispatcher
$estilos->add($general);
$estilos->add($another);

//Dispatch the styles
$estilos->render();

?>

Documentation generated on Tue, 25 Aug 2009 12:42:21 +0200 by phpDocumentor 1.4.2