autoload.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * This file is part of the Cygnite package.
  4. *
  5. * (c) Sanjoy Dey <[email protected]>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Cygnite\Foundation;
  11. if (!defined('CF_SYSTEM')) {
  12. exit('External script access not allowed');
  13. }
  14. return array(
  15. /*---------------------------------------------------------------------------
  16. * Register all your directories to auto load your files.
  17. *---------------------------------------------------------------------------
  18. * You can specify multiple numbers of directories here to register on
  19. * Cygnite Engine during runtime. Don't worry about the application
  20. * performance because all libraries are lazy loaded. But filename,
  21. * class name and file should be same, StudlyCaps.
  22. *
  23. * Specify your directory path here. That's all. Cygnite will
  24. * take care of rest.
  25. */
  26. Application::instance()->registerDirectories(
  27. array(
  28. 'apps.controllers',
  29. 'apps.models',
  30. 'apps.configs.definitions'
  31. )
  32. )
  33. );