]> dev.renevier.net Git - syj.git/blobdiff - application/Bootstrap.php
cache js, css and png files
[syj.git] / application / Bootstrap.php
index 60e06279a2e25c2bae5437813e626b84191a63a6..f3fb3999fbdf836831c3fb20a20f7ee74c846ef7 100644 (file)
@@ -30,6 +30,18 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
         if (strpos ($class, "Syj_") === 0) {
             $segments = explode ('_', $class);
 
+            if (count($segments) < 2) {
+                return;
+            }
+
+            if (count($segments) == 2) {
+                $filename = APPLICATION_PATH . '/' . end($segments) . '.php';
+                if (Zend_Loader::isReadable($filename)) {
+                    include_once $filename;
+                }
+                return;
+            }
+
             if (count($segments) < 3) {
                 return;
             }