SHARE
TWEET

Untitled

a guest May 28th, 2014 198 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top