render a view from another controller, yii
try this
$this->render('//foo/error');
If you don't echo it, you will get a blank page. The correct way is
<?=
$this->render('//foo/error');
?>
or
<?php
echo $this->render('//foo/error');
?>
This also works for Yii2