I can't call $loader->register()

Hi there, I just upgrade from ubuntu 12.04 to ubuntu 13.10, and I reinstall the phalcon from master, Now, the project doesn't work. Xdebug show that stop from $loader->register().What can I do?

Are you using a different Phalcon version?

Here is an example of my loader:

    $loader = new \Phalcon\Loader();

    $loader->registerNamespaces([
       "Dashboard" => "../app/controllers/dashboard/",
       "Admin" => "../app/controllers/admin/",
    ]);

    $loader->registerDirs([
        '../app/controllers/',
        '../app/models/',
        '../app/config/',
        '../app/event/',
        '../app/library/',
    ]);

    $loader->register();

It might also help to catch the exception so try this code out (With your own code in there obviously)

<?php

error_reporting(E_ALL);

try {
    $loader = new \Phalcon\Loader();
    // ... Your loader stuff
    $loader->register();

    $di = new Phalcon\DI\FactoryDefault();

    $application = new \Phalcon\Mvc\Application($di);
    echo $application->handle()->getContent();

} catch(\Phalcon\Exception $e) {

    echo '<pre>';
    echo get_class($e), ": ", $e->getMessage(), "\n";
    echo " File=", $e->getFile(), "\n";
    echo " Line=", $e->getLine(), "\n";
    echo $e->getTraceAsString();
    echo '</pre>';

}


1.3k

Hi Jesse Boyer:
Thanks for you help. I've tried many times and used different example codes.
It just terminaled at call function $loader->register().
Now I've reinstalled ubuntu12.04



7.2k

Try to install the version 1.2.3 All works on : PHP 5.5.7 (cli) (built: Dec 11 2013 20:55:14) 3.12.6-1-ARCH