title: Yii display and validation of fields not present in table
body: <p>I am a newbie in  Yii. I have created a page where user can change their password.</p>
  
  <p>So in my changePassword view I have :</p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;?php echo $form-&gt;labelEx($model,'oldpwd'); ?&gt;
      &lt;?php echo $form-&gt;textField($model,'oldpwd'); ?&gt;
      &lt;?php echo $form-&gt;error($model,'oldpwd'); ?&gt;
  &lt;/div&gt;
  
  &lt;div class="row"&gt;
      &lt;?php echo $form-&gt;labelEx($model,'pwd'); ?&gt;
      &lt;?php echo $form-&gt;textField($model,'pwd'); ?&gt;
      &lt;?php echo $form-&gt;error($model,'pwd'); ?&gt;
  &lt;/div&gt;
  
  &lt;div class="row"&gt;
      &lt;?php echo $form-&gt;labelEx($model,'pwd_repeat'); ?&gt;
      &lt;?php echo $form-&gt;passwordField($model,'pwd_repeat'); ?&gt;
      &lt;?php echo $form-&gt;error($model,'pwd_repeat'); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now obviously I am getting an error as only the field 'pwd' is in the table and thereby in the model. I am new to MVC frameworks and can use some help here. Thanks</p>