title: Yii $form->textfield, how to set a default value?
body: <p>So I am fiddling with the Yii Framework and in one of the views, specifically the create form, I am trying to give one of my textfields a default value. Therefore when I go onto my create page the values are already preloaded on the form.</p>
  
  <p><strong>Here is my current code</strong></p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;?php echo $form-&gt;labelEx($model,'teamlead'); ?&gt;
      &lt;?php echo $form-&gt;textField($model,'teamlead',array('size'=&gt;50,'maxlength'=&gt;50,'value'=&gt;Yii::app()-&gt;user-&gt;getUsername(),'disabled'=&gt;'disabled')); ?&gt;
      &lt;?php echo $form-&gt;error($model,'teamlead'); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I press create, Yii gives me an error telling me that there <code>textField</code> is empty? Not sure what else I can do other than set the value. Am I also suppose to set the model attributes?</p>