Advertisement
Guest User

Untitled

a guest
May 28th, 2014
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <?php
  2.  
  3. $loader = new \Phalcon\Loader();
  4.  
  5. /**
  6. * We're a registering a set of directories taken from the configuration file
  7. */
  8. $loader->registerDirs(
  9. array(
  10. $config->application->controllersDir,
  11. $config->application->modelsDir
  12. )
  13. );
  14. $loader->registerNamespaces(
  15. array(
  16. 'test\Controllers'=>__DIR__.'/../controllers/',
  17. 'test\Models'=>__DIR__.'/../models/',
  18. 'test\Forms'=>__DIR__.'/../forms/'
  19. ),true);
  20. $loader->register();
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement