title: change placeholder text from array
body: <p>I'm using the yii-user extension and i'm trying the add proper label to the 'placeholder' attribute. really new to Yii so still trying to get the grasp of things.</p>
  
  <p>I've added the <code>attributeLabels()</code> method in the class in the <strong>models</strong> folder.</p>
  
  <pre><code>class RegistrationForm extends User {
         /**
       * Declares attribute labels.
       */
      public function attributeLabels()
      {
          return array(
              'email'=&gt;'Email Address',
              'firstname'=&gt;'First Name',
              'lastname' =&gt; 'Last Name',
                      'verifyPassword' = 'Retype Password'
          );
      }
  } 
  </code></pre>
  
  <p>Here is my code in my <strong>/views/</strong> folder</p>
  
  <pre><code>       $form=$this-&gt;beginWidget('bootstrap.widgets.TbActiveForm', array(
              'id'=&gt;'registration-form',
              'type'=&gt;'vertical',
              'enableClientValidation'=&gt;true,
              'clientOptions'=&gt;array(
                  'validateOnSubmit'=&gt;true,
              ),
          ));
  
  
      &lt;?php echo $form-&gt;textField($model,'email', array('class' =&gt; 'input-block-level', 'placeholder' =&gt; 'email')); ?&gt;
  
              &lt;?php echo $form-&gt;passwordField($model,'password', array('class' =&gt; 'input-block-level', 'placeholder' =&gt; 'password')); ?&gt;
  
              &lt;?php echo $form-&gt;passwordField($model,'verifyPassword', array('class' =&gt; 'input-block-level', 'placeholder' =&gt; 'verifyPassword')); ?&gt;  
  
  
      &lt;?php 
          $profileFields=Profile::getFields();
          if ($profileFields) {
              foreach($profileFields as $field) {
  
          if ($widgetEdit = $field-&gt;widgetEdit($profile)) {
              //echo $widgetEdit;
          } elseif ($field-&gt;range) {
              echo $form-&gt;dropDownList($profile,$field-&gt;varname,Profile::range($field-&gt;range),array('class' =&gt; 'input-block-level'));
          } elseif ($field-&gt;field_type=="TEXT") {
              echo $form-&gt;textArea($profile,$field-&gt;varname,array('rows'=&gt;6, 'cols'=&gt;50));
          } else {
              //echo $field-&gt;varname;
              if ($field-&gt;varname == 'firstname')
              {
                  $placeholder = 'First Name';
              }
              else if ($field-&gt;varname == 'lastname')
              {
                  $placeholder = 'Last Name';
              }
              else 
              {
                  $placeholder = $field-&gt;varname; 
              }
  echo $form-&gt;textField($profile,$field-&gt;varname,array('size'=&gt;60,'maxlength'=&gt;(($field-&gt;field_size)?$field-&gt;field_size:255),'class' =&gt; 'input-block-level', 'placeholder' =&gt; $placeholder));
          }
  
          echo $form-&gt;error($profile,$field-&gt;varname); 
  
              }
          }
  ?&gt;
  </code></pre>
  
  <p>how would i make <code>attributeLabels()</code> work on my <code>echo $form-&gt;textField($profile,$field-&gt;varname,array('size'=&gt;60,'maxlength'=&gt;(($field-&gt;field_size)?$field-&gt;field_size:255),'class' =&gt; 'input-block-level', 'placeholder' =&gt; $placeholder));</code> ?</p>