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();
}


36.3k
edited 17d ago

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 ?
  • ....