1
votes

Tried with the question but it didn't fix my issue. : Phalcon tutorial error PhalconException: TestController handler class cannot be loaded

My application is in AWS ubuntu 14.0 and some pages are working fine but for few pages, I'm getting this error:

PhalconException: NameController handler class cannot be loaded.

My controller names are CamelCase!

//Setup a base URI so that all generated URIs include the "tutorial" folder
$di->set('url', function(){
    $url = new \Phalcon\Mvc\Url();
    $url->setBaseUri('/');
    return $url;
});

I changed my apache2.conf file to AllowOverride : all:

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride all
    Require all granted
</Directory>

My App is here projectname/admin/app/:

try {
    //Register an autoloader
    $loader = new \Phalcon\Loader();
    $loader->registerDirs(array(
        '../app/controllers/',
        '../app/models/',
        '../app/plugins/',
    ))->register();

cant able to debug this can anyone help what else could be the issue.?

2

2 Answers

1
votes

If the controller page is not present in controllers then this issue will come, so plz recheck the controller page exists or not.

0
votes

This simply means that such controller doesn't exists, like class isn't loaded.