X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2FBootstrap.php;h=f3fb3999fbdf836831c3fb20a20f7ee74c846ef7;hp=60e06279a2e25c2bae5437813e626b84191a63a6;hb=7ab93faefae14af39fc5449a2c3311dd68d2c0f9;hpb=38bedcd63499189e0584bfff6e44ae4018283eb1 diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 60e0627..f3fb399 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -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; }