autoload.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.services',
  31. //'apps.components.form',
  32. 'apps.configs.definitions',
  33. //'apps.modules',
  34. //'apps.extensions',
  35. )
  36. )
  37. );