Update main.php

Methosd beginBody() and endBody() implemented only in \yii\web\View