its soo good to register directories for the autoloader:
$loader->registerDirs( array( APP_PATH . $config->application->controllersDir, APP_PATH . $config->application->pluginsDir, APP_PATH . $config->application->libraryDir, APP_PATH . $config->application->libraryDir.'fold1/fold2', APP_PATH . $config->application->modelsDir, APP_PATH . $config->application->formsDir, ) )->register();
my problem is I have to register all directories one by one. How to make it work so that search in subdirectories too?