loader.php 310 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
<?php

$loader = new \Phalcon\Loader();

/**
 * We're a registering a set of directories taken from the configuration file
 */
$loader->registerDirs(
    array(
        $config->application->controllersDir,
11 12
        $config->application->modelsDir,
        $config->application->libraryDir
13 14
    )
)->register();