We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

View does not appear

on my local server the views appear normally, but when I uploaded the files to the web server the views do not appear how do I resolve this?

my code

public function registerAutoloaders(DiInterface $di = null) { $loader = new Loader();

    $loader->registerNamespaces(
        [
            'Modules\Backend\Controllers' => __DIR__ . '/controllers/',
            'Modules\Backend\Models' => __DIR__ . '/models/',
            'Modules\Backend\Views' => __DIR__ . '/views/',
        ]
    );

    $loader->register();
}


43.9k
edited May '18

Hi,

well more details are needed:

  • what's the server's response (200, 500, 404 ???, you can use the browser debug console to check that)
  • is there any useful webserver error log ?
  • development environment = production environment ?
  • is DIR well defined in production ?
  • ....