diff --git a/templates/layout/default.php b/templates/layout/default.php deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/templates/layout/error.php b/templates/layout/error.php index 98ba603e6c215ddc402544e9681fe381cffeb7ec..79c56155f996f1b663cc03854704ffd04c8fa663 100644 --- a/templates/layout/error.php +++ b/templates/layout/error.php @@ -2,6 +2,8 @@ /** * @var AsalaeCore\View\AppView $this */ - -$this->extend('default'); -include 'ajax.php'; +try { + $this->extend('default'); +} catch (Cake\View\Exception\MissingLayoutException $e) { +} +require 'ajax.php';