- | Title |
- Created |
- Action |
+ = $this->Paginator->sort('title') ?> |
+ = $this->Paginator->sort('created') ?> |
+ = __('Action') ?> |
-
+
|
= $this->Html->link($article->title, ['action' => 'view', $article->slug]) ?>
@@ -19,13 +26,26 @@
= $article->created->format(DATE_RFC850) ?>
|
- = $this->Html->link('Edit', ['action' => 'edit', $article->slug]) ?>
- = $this->Form->postLink(
- 'Delete',
- ['action' => 'delete', $article->slug],
- ['confirm' => 'Are you sure?'])
- ?>
+
+ Identity->is($article->user_id)) : ?>
+ = $this->Html->link(__('Edit'), ['action' => 'edit', $article->slug]) ?>
+ = $this->Form->deleteLink(
+ __('Delete'),
+ ['action' => 'delete', $article->slug],
+ ['confirm' => __('Are you sure?')],
+ ) ?>
+
|
-
+
+
+ $tags
+ */
+?>
- Articles tagged with
- = $this->Text->toList(h($tags), 'or') ?>
+ = __('Articles tagged with') ?>
+ = $this->Text->toList(h($tags), __('or')) ?>
-
+
= $this->Html->link(
$article->title,
- ['controller' => 'Articles', 'action' => 'view', $article->slug]
+ ['controller' => 'Articles', 'action' => 'view', $article->slug],
) ?>
- = h($article->created) ?>
+ = h($article->created) ?>
-
-
\ No newline at end of file
+
+
diff --git a/templates/Articles/view.php b/templates/Articles/view.php
index c0799bf..66bbd20 100644
--- a/templates/Articles/view.php
+++ b/templates/Articles/view.php
@@ -1,7 +1,13 @@
-
-
+
= h($article->title) ?>
= h($article->body) ?>
-Tags: = h($article->tag_string) ?>
-Created: = $article->created->format(DATE_RFC850) ?>
-= $this->Html->link('Edit', ['action' => 'edit', $article->slug]) ?>
+= __('Tags:') ?> = h($article->tag_string) ?>
+= __('Created:') ?> = $article->created->format(DATE_RFC850) ?>
+Identity->is($article->user_id)) : ?>
+ = $this->Html->link(__('Edit'), ['action' => 'edit', $article->slug]) ?>
+
diff --git a/templates/Error/error400.php b/templates/Error/error400.php
index 3cfc92b..b111276 100644
--- a/templates/Error/error400.php
+++ b/templates/Error/error400.php
@@ -1,34 +1,22 @@
layout = 'error';
+$this->setLayout('error');
if (Configure::read('debug')) :
- $this->layout = 'dev_error';
+ $this->setLayout('dev_error');
$this->assign('title', $message);
$this->assign('templateName', 'error400.php');
$this->start('file');
-?>
-queryString)) : ?>
-
- SQL Query:
- = h($error->queryString) ?>
-
-
-params)) : ?>
- SQL Query Params:
- params) ?>
-
-= $this->element('auto_table_warning') ?>
-end();
+ echo $this->element('auto_table_warning');
+ $this->end();
endif;
?>
= h($message) ?>
diff --git a/templates/Error/error500.php b/templates/Error/error500.php
index a1c6c44..c6239e4 100644
--- a/templates/Error/error500.php
+++ b/templates/Error/error500.php
@@ -1,42 +1,35 @@
layout = 'error';
+$this->setLayout('error');
if (Configure::read('debug')) :
- $this->layout = 'dev_error';
+ $this->setLayout('dev_error');
$this->assign('title', $message);
$this->assign('templateName', 'error500.php');
$this->start('file');
?>
-queryString)) : ?>
-
- SQL Query:
- = h($error->queryString) ?>
-
-
-params)) : ?>
- SQL Query Params:
- params) ?>
-
- Error in:
- = sprintf('%s, line %s', str_replace(ROOT, 'ROOT', $error->getFile()), $error->getLine()) ?>
+ getFile() ?>
+ getLine() ?>
+ Error in:
+ = $this->Html->link(sprintf('%s, line %s', Debugger::trimPath($file), $line), Debugger::editorUrl($file, $line)); ?>
element('auto_table_warning');
- if (extension_loaded('xdebug')) :
- xdebug_print_function_stack();
- endif;
-
$this->end();
endif;
?>
-= __d('cake', 'An Internal Error Has Occurred') ?>
+= __d('cake', 'An Internal Error Has Occurred.') ?>
= __d('cake', 'Error') ?>:
= h($message) ?>
diff --git a/templates/Pages/home.php b/templates/Pages/home.php
index 3e7473c..710ad2f 100644
--- a/templates/Pages/home.php
+++ b/templates/Pages/home.php
@@ -1,5 +1,4 @@
top level domain to the
- DebugKit.safeTld
+ 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.';
@@ -76,40 +75,40 @@
= $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.
-
-
-
+
+
+
+
+
+
+ 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
-
+
+
+
Environment
+
=')) : ?>
- Your version of PHP is 8.1.0 or higher (detected = PHP_VERSION ?>).
@@ -137,11 +136,11 @@
- You should set
zend.assertions to 1 in your php.ini for your development environment.
-
-
-
+
+
Filesystem
+
- Your tmp directory is writable.
@@ -156,31 +155,38 @@
- - The = h($settings['className']) ?> is being used for core caching. To change the config edit config/app.php
+ - The = h($settings['className']) ?> engine is being used for translations caching. To change the config edit
config/app.php
- - Your cache is NOT working. Please check the settings in config/app.php
+ - Your translations cache is NOT working. Please check the settings in config/app.php
-
+
+
-
-
-
-
-
Database
-
-
+
+
+
+
Database
+
+
- CakePHP is able to connect to the database.
- CakePHP is NOT able to connect to the database.
= h($result['error']) ?>
-
-
-
-
DebugKit
-
+
+
+
+ - The = h($settings['className']) ?> engine is being used for database schema caching. To change the config edit config/app.php
+
+ - Your database schema cache is NOT working. Please check the settings in
config/app.php
+
+
+
+
+
DebugKit
+
- DebugKit is loaded.
- DebugKit is not loaded.
-
+
+
-
-
-