and is published under the AGPL license. */
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
- protected static $libns = array('gisconverter', 'phptojs', 'pwdgen');
+ protected static $libns = array('gisconverter', 'phptojs', 'pwdgen', 'alti');
public function _bootstrap($resource = null) {
$autoloader = Zend_Loader_Autoloader::getInstance();
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;
}