Login   Register  
PHP Classes
elePHPant
Icontem

File: javascript.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Antonio Jozzolino  >  crushJsCss  >  javascript.php  >  Download  
File: javascript.php
Role: Example script
Content type: text/plain
Description: Javascript Example
Class: crushJsCss
Optimize Javascript and CSS files
Author: By
Last change:
Date: 2008-08-06 06:36
Size: 505 bytes
 

Contents

Class file image Download
<?php
$path 
"C:\phpclasses";
include(
'../../class_crushJsCss/class_crushJsCss.php');

$i 0;
$js[$i++]['file'] = $path.'\class_crushJsCss\examples\01.js';
$js[$i++]['file'] = $path.'\class_crushJsCss\examples\02.js';
$js[$i-1]['pack'] = false;
$js[$i++]['file'] = $path.'\class_crushJsCss\examples\03.js';

$javascript = new crushJsCss();
$javascript->scripts  $js;
$javascript->type     'javascript';
$javascript->cachedir $path.'\class_crushJsCss\cache';
$javascript->jscss();
?>