Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $loader = new \Phalcon\Loader();
- /**
- * We're a registering a set of directories taken from the configuration file
- */
- $loader->registerDirs(
- array(
- $config->application->controllersDir,
- $config->application->modelsDir
- )
- );
- $loader->registerNamespaces(
- array(
- 'test\Controllers'=>__DIR__.'/../controllers/',
- 'test\Models'=>__DIR__.'/../models/',
- 'test\Forms'=>__DIR__.'/../forms/'
- ),true);
- $loader->register();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement