diff --git a/framework/views/errorHandler/exception.php b/framework/views/errorHandler/exception.php
index e69de29bb2..67c2ed12af 100644
--- a/framework/views/errorHandler/exception.php
+++ b/framework/views/errorHandler/exception.php
@@ -0,0 +1,482 @@
+
+beginPage(); ?>
+
+
+
+
+
+
+ statusCode . ' ' . $handler->htmlEncode($exception->getName());
+ } elseif ($exception instanceof \yii\base\Exception) {
+ echo $handler->htmlEncode($exception->getName() . ' – ' . get_class($exception));
+ } else {
+ echo $handler->htmlEncode(get_class($exception));
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+ = $handler->renderCallStackItem($exception->getFile(), $exception->getLine(), null, null, 1) ?>
+ getTrace(), $length = count($trace); $i < $length; ++$i): ?>
+ = $handler->renderCallStackItem(@$trace[$i]['file'] ?: null, @$trace[$i]['line'] ?: null,
+ @$trace[$i]['class'] ?: null, @$trace[$i]['function'] ?: null, $i + 2) ?>
+
+
+
+
+
+
+ = $handler->renderRequest() ?>
+
+
+
+
+
+
+
+
+
+
+ endBody(); // to allow injecting code into body (mostly by Yii Debug Toolbar) ?>
+
+
+
+endPage(); ?>
diff --git a/framework/views/migration.php b/framework/views/migration.php
index c0e6a9810e..aebfb00dbf 100644
--- a/framework/views/migration.php
+++ b/framework/views/migration.php
@@ -8,6 +8,8 @@
echo "
+use yii\db\Schema;
+
class = $className ?> extends \yii\db\Migration
{
public function up()