-
Notifications
You must be signed in to change notification settings - Fork 1
Urls::error_403($doc=null, $showNoError=false)
micahbaumann edited this page Oct 12, 2022
·
1 revision
Triggers a 403 HTTP error.
Returns |
---|
void |
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. |
<!-- 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>