404.php 237 B

1234567891011121314
  1. <?php
  2. namespace App;
  3. http_response_code(404);
  4. if(Http::isAjax()) {
  5. Json::fail(__("Page not found."), 404);
  6. }
  7. else {
  8. View::include("header");
  9. View::include("error", ["message" => __("Page not found.")]);
  10. View::include("footer");
  11. }