Skip to content

Urls::error_403($doc=null, $showNoError=false)

micahbaumann edited this page Oct 12, 2022 · 1 revision

Description

Triggers a 403 HTTP error.

Returns
void

Parameters

Parameter Default Type Required Description
$doc NULL String The path to the file you want to display.
$showNoError False Bool Whether or not you want to show a custom or URLS default error. If true, the browser will handle the error.

Examples

<!-- blog-home.php -->
<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
   <title>My Blog - Home</title>
</head>
<body>
<h1>This is my Blog</h1>

<?php Urls::$self->error_403("errors/403_error.php", false); ?>

<p>Welcome!</p>
</body>
</html>
Clone this wiki locally