CakePHP 5.4 app for live polls: create via email without login, manage via secret admin link, join via code. Includes slide types (choice, wordcloud, open, scale, content), presenter mode, CSV export, captcha, throttling, tests and Gitea CI/deploy workflow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* @var \App\View\AppView $this
|
|
* @var \Cake\Database\StatementInterface $error
|
|
* @var string $message
|
|
* @var string $url
|
|
*/
|
|
use Cake\Core\Configure;
|
|
use Cake\Error\Debugger;
|
|
|
|
$this->setLayout('error');
|
|
|
|
if (Configure::read('debug')) :
|
|
$this->setLayout('dev_error');
|
|
|
|
$this->assign('title', $message);
|
|
$this->assign('templateName', 'error500.php');
|
|
|
|
$this->start('file');
|
|
if (!empty($error->queryString)) : ?>
|
|
<p class="notice"><strong>SQL Query: </strong><?= h($error->queryString) ?></p>
|
|
<?php endif;
|
|
if (!empty($error->params)) : ?>
|
|
<strong>SQL Query Params: </strong>
|
|
<?php Debugger::dump($error->params) ?>
|
|
<?php endif;
|
|
if ($error instanceof Error) :
|
|
$file = $error->getFile();
|
|
$line = $error->getLine(); ?>
|
|
<strong>Error in: </strong>
|
|
<?= $this->Html->link(sprintf('%s, line %s', Debugger::trimPath($file), $line), Debugger::editorUrl($file, $line)); ?>
|
|
<?php endif;
|
|
echo $this->element('auto_table_warning');
|
|
$this->end();
|
|
endif;
|
|
$this->assign('title', __('Fehler'));
|
|
?>
|
|
<h1><?= __('Da ist etwas schiefgelaufen') ?></h1>
|
|
<p class="lead"><?= __('Bitte versuche es in einem Moment noch einmal.') ?></p>
|