luyadev/luya-module-cms

View on GitHub
src/frontend/controllers/ErrorController.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace luya\cms\frontend\controllers;

use Yii;

/**
 * CMS Error Handler Rendering
 *
 * @author Basil Suter <basil@nadar.io>
 * @since 1.0.0
 */
class ErrorController extends \luya\web\Controller
{
    public function actionIndex()
    {
        return $this->renderPartial($this->module->errorViewFile, [
            'exception' => Yii::$app->errorHandler->exception
        ]);
    }
}