title: Codeigniter 4 works fine local but online production server gives a error: CodeIgniter\View\Exceptions\ViewException
body: <p>When uploaded on the server</p>
  <pre><code>/app
  /public_html
  /vendor
  /writable
  </code></pre>
  <p>And use <a href="https://server.com/home" rel="nofollow noreferrer">https://server.com/home</a> I see the welcome page but when I user <a href="https://server.com/pages" rel="nofollow noreferrer">https://server.com/pages</a> I get a error 'CodeIgniter\View\Exceptions\ViewException
  Invalid file: pages/home.php' <strong>SYSTEMPATH/Exceptions/FrameworkException.php at line 21</strong></p>
  <pre><code> public static function forEnabledZlibOutputCompression()
  15   {
  16   return new static(lang('Core.enabledZlibOutputCompression'));
  17   }
  18 
  19  public static function forInvalidFile(string $path)
  20   {
  21  return new static(lang('Core.invalidFile', [$path]));
  22   }
  23 
  24  public static function forCopyError(string $path)
  25     {
  26         return new static(lang('Core.copyError', [$path]));
  27     }
  28 
  </code></pre>