PHP code example of vkm-apps / x-error

1. Go to this page and download the library: Download vkm-apps/x-error library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vkm-apps / x-error example snippets


<x-error />

config/x-error.php

'layout' => null,

'layout' => 'errors.custom',

'exception' => [
    'enabled' => false,
    'title' => 'Exception Details',
    'permission' => null,
],

'colors' => [
    'default' => 'text-zinc-600 dark:text-white',
],

    'button' => [
    'url' => '/',
    'class' => '...',
    'text' => 'Home',
],

__("x-error::errors.{code}.title")
__("x-error::errors.{code}.message")

return [
    '404' => [
    'title' => 'Page Not Found',
    'message' => 'The page you are looking for does not exist.',
    ],
];