title: Showing nothing in display, using Yii 2.0.6
body: <p>I am using YII 2.0.6 basic, code for the three files is as :-</p>
  
  <p>model file namely 'UserForm.php'</p>
  
  <pre><code>namespace app\models;
  
      use yii\base\Model;
  
      class UserForm extends Model
      {
          public $name;
          public $email;
  
          public function rules()
          {
              return[
                      [['name','email'],'required'],
                      ['email','email']
                    ];
          }
      }
  </code></pre>
  
  <p>controller file namely 'SiteController.php'</p>
  
  <pre><code>public function actionUser()
      {
          $model = new UserForm;
  
          if($model-&gt;load(Yii::$app-&gt;request-&gt;post())&amp;&amp; $model-&gt;validate())
          {
              Yii::$app-&gt;session-&gt;setFlash('success','You have entered the data correctly.');
          }
          $this-&gt;render('user',['model'=&gt;$model]);
  </code></pre>
  
  <p>and the third one view file namely 'user.php'</p>
  
  <pre><code>use yii\helpers\Html;
  use yii\widgets\ActiveForm;
  
  if(Yii::$app-&gt;session-&gt;hasFlash('success'))
  {
     echo Yii::$app-&gt;getFlash('success');
  }
  
  $form = ActiveForm::begin()
  &lt;? $form-&gt;field($model,'name'); ?&gt;
  &lt;? $form-&gt;form($model,'email'); ?&gt;
  &lt;? Html::submitButton('Submit',['class' =&gt; 'btn btn-success']); ?&gt;
  ActiveForm::end()
  </code></pre>
  
  <p>I am using this link in the browser to get the data displayed. Well I think this link is correct.</p>
  
  <p><a href="http://localhost/basic/web/index.php?r=site/user" rel="nofollow">http://localhost/basic/web/index.php?r=site/user</a> </p>
  
  <p>When I goes to this link, The browser shows nothing, neither an error nor any output.</p>
  
  <p>May anybody please help me out, where is the exact problem ?
  Thanks in advance.</p>