Login   Register  
PHP Classes
elePHPant
Icontem

File: js.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Alex Lau  >  Mix2ool  >  js.php  >  Download  
File: js.php
Role: Auxiliary script
Content type: text/plain
Description: JS preprocessing engine
Class: Mix2ool
Web development framework integrated with jQuery
Author: By
Last change:
Date: 2009-09-02 17:06
Size: 370 bytes
 

Contents

Class file image Download
<?php
    
if (file_exists("js/jsConfig.php")){
        include_once(
"js/jsConfig.php");
    }
    
    include_once(
"common.php");

    
$jsFiles glob("js/*.js");
    
    
    
header('Content-type: application/javascript');
    include_once(
$mixPath "mixView.php");
    
$view = new mixView();
    for (
$i 0$l count($jsFiles); $i $l$i++){
        
$view->useTemplate($jsFiles[$i]);
    }
?>