I can't render my view

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




<?php

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


?>

<h1>adminsite/index</h1>


<p>

    You may change the content of this page by modifying

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


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

</p>









<?php


 echo "Test this admin dashboard";


?>

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

Ok thank you. :)