title: Yii2 - How to render the index view plus the create view all in the same page
body: <p><strong>Greetings,</strong></p>
  
  <p>So far i have made Yii2 applications always rendering one view per action in some Controller.</p>
  
  <p>But now i need to render 2 view files, the <code>index</code> and the <code>create</code> in the same screen.</p>
  
  <p>In Yii1.xx there was <code>renderPartial()</code>, and in Yii2 now there is <code>render()</code> as substitute but don't know how to use it. I know the syntax is somewhat like <code>app/Controller::render()</code> but it doesn't ring a bell to me.</p>
  
  <p><strong>My actionIndex in my SiteController is:</strong></p>
  
  <pre><code>public function actionIndex()
  {
      $searchModel = new TubeSearch();
      $dataProvider = $searchModel-&gt;search(Yii::$app-&gt;request-&gt;queryParams);
  
      return $this-&gt;redirect(Url::toRoute('tube/index'), [
          'searchModel' =&gt; $searchModel,
          'dataProvider' =&gt; $dataProvider,
      ]);
  }
  </code></pre>
  
  <p><strong>This action loads the tube/index page as the starting page of the app. I want to join in the load the create action. Is it possible -> two php files rendering in the same screen at statup.</strong></p>
  
  <p><strong>many thanks...</strong></p>