title: how to show new added columns in database in yii framework?
body: <p>i added two new columns in my db table, and then i defined these new columns in the table model itself, and then, when i called</p>
  
  <pre><code>$model-&gt;getAttributes()
  </code></pre>
  
  <p>the two new columns didn't appear in the array output of <code>$model-&gt;getAttributes() method call</code></p>
  
  <p>there's no schema caching set in my configs,
  any idea how to solve this?, and how am I gonna get the value of the input forms
  of the new added columns from the front-end if i have a problem in showing off the two newly added columns ?</p>
  
  <p>e.g </p>
  
  <p>new columns
           INHOUSE
           OUTHOUSE</p>
  
  <p>//view</p>
  
  <pre><code> &lt;?php echo $form-&gt;checkBox($model,'INHOUSE',array("id"=&gt;"inhouse","value"=&gt;1, "uncheckValue"=&gt;0));?&gt;
   &lt;?php echo $form-&gt;checkBox($model,'OUTHOUSE',array("id"=&gt;"outhouse","value"=&gt;1, "uncheckValue"=&gt;0));?&gt;
  </code></pre>
  
  <p>//controller update action</p>
  
  <p>i tried to save the value of the INHOUSE and OUTHOUSE didn't get saved when i do</p>
  
  <pre><code>$model-&gt;attributes = $_POST['users'];
  $model-&gt;save();
  </code></pre>
  
  <p>NOR</p>
  
  <pre><code>$model-&gt;INHOUSE = $_POST['users']['INHOUSE'];
  $model-&gt;OUTHOUSE = $_POST['users']['OUTHOUSE'];
  $model-&gt;save;
  </code></pre>
  
  <p>any ideas how to solve all those problems?</p>