I can't render my view

Hi, Can I ask some help why is it I can’t render my view inside the view ?


/* @var $this yii\web\View */




    You may change the content of this page by modifying

    the file <code><?= __FILE__; ?></code>.

    <?php return $this->render('admindashboard')?>



 echo "Test this admin dashboard";


In Yii2, you need to echo the view, not return it.

Ok thank you. :)