disableAutoLayout();
$checkConnection = function (string $name) {
$error = null;
$connected = false;
try {
ConnectionManager::get($name)->getDriver()->connect();
// No exception means success
$connected = true;
} catch (Exception $connectionError) {
$error = $connectionError->getMessage();
// Only call getAttributes if the method exists and is callable
if ($name === 'debug_kit') {
$error = 'Try adding your current top level domain to the
DebugKit.safeTld
config and reload.';
if (!in_array('sqlite', \PDO::getAvailableDrivers())) {
$error .= '
You need to install the PHP extension pdo_sqlite so DebugKit can work properly.';
}
}
}
return compact('connected', 'error');
};
if (!Configure::read('debug')) :
throw new NotFoundException(
'Please replace templates/Pages/home.php with your own version or re-enable debug mode.'
);
endif;
?>
= $this->Html->charset() ?>
CakePHP: the rapid development PHP framework:
= $this->fetch('title') ?>
= $this->Html->meta('icon') ?>
= $this->Html->css(['normalize.min', 'milligram.min', 'fonts', 'cake', 'home']) ?>
= $this->fetch('meta') ?>
= $this->fetch('css') ?>
= $this->fetch('script') ?>
Welcome to CakePHP = h(Configure::version()) ?> Chiffon (🍰)
Please be aware that this page will not be shown if you turn off debug mode unless you replace templates/Pages/home.php with your own version.
Environment
=')) : ?>
- Your version of PHP is 8.1.0 or higher (detected = PHP_VERSION ?>).
- Your version of PHP is too low. You need PHP 8.1.0 or higher to use CakePHP (detected = PHP_VERSION ?>).
- Your version of PHP has the mbstring extension loaded.
- Your version of PHP does NOT have the mbstring extension loaded.
- Your version of PHP has the openssl extension loaded.
- Your version of PHP does NOT have the openssl extension loaded.
- Your version of PHP has the intl extension loaded.
- Your version of PHP does NOT have the intl extension loaded.
- You should set
zend.assertions to 1 in your php.ini for your development environment.
Filesystem
- Your tmp directory is writable.
- Your tmp directory is NOT writable.
- Your logs directory is writable.
- Your logs directory is NOT writable.
- The = h($settings['className']) ?> is being used for core caching. To change the config edit config/app.php
- Your cache is NOT working. Please check the settings in config/app.php
Database
- CakePHP is able to connect to the database.
- CakePHP is NOT able to connect to the database.
= h($result['error']) ?>
DebugKit
- DebugKit is loaded.
- DebugKit can connect to the database.
- There are configuration problems present which need to be fixed:
= $result['error'] ?>
- DebugKit is not loaded.