MTrackWeb.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 07:39:05 +0000 (15:39 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 07:39:05 +0000 (15:39 +0800)
MTrackWeb.php

index c4e5b56..f62d934 100644 (file)
@@ -511,6 +511,20 @@ class MTrackWeb extends HTML_FlexyFramework_Page
         
     }
 
+     function packJS($dir)
+    {
+       
+        // target has to be 'aliased'
+        // target filename can be an md5..
+        
+        require_once 'Pman/Core/JsCompile.php';
+        $x = new Pman_Core_JsCompile();
+        $x->packScript(dirname(__FILE__).'/Hex/templates/images',
+                       array($dir),
+                        $this->rootURL . '/Hex/templates/images');
+        
+        
+    }