[Extension] Gimport

GImport class implements recursive import of directories with caching.

Import is performed recursively for specified path alias. Classes found are cached, so the import process can be slow only first time.

Basic usage example:

   $importer = new GImport;


This code will import all clasees from modules/myModule/ directory.

GImport can also be configured as application component. Add following code into the application config:

return array(


  'preload' => array('log', 'import'),


  'components' => array(

    'import' => array(


        'import' => array(

             // add directories to import and

             // put 'import' component to preload to trigger import 

             // on application initialization





Download at extension page.