$application = new Dragon_Application_Application(); $application ->setEnvironment('%environment%') ->setTimezone() ->addLibrarypaths(array( '%zendpath%', '%dragonjsonserverpath%/library', )) ->initAutoloader() ->initPackageRegistry(require '%applicationpath%/config/packagenamespaces.php') ->initRepositoryRegistry(require '%applicationpath%/config/repositories.php') ->initPluginRegistry() ->bootstrap();
class %packagenamespace%_%packagename%_Plugin_%pluginname% implements Dragon_Application_Plugin_Bootstrap_Interface { public function bootstrap() {} }
return array('key' => 'value');
/config /%packagenamespace% /%packagename% /%filename%.php
$config = new Dragon_Application_Config('%packagenamespace%/%packagename%/%filename%'); echo $config->key;