title: passing attributes of form_input by an array or dirrectly
body: <p>I'm trying to add the placeholder and set_value for setting the value attribute by form_input of CodeIgniter. I tried the following code, but placeholder does not work:</p>
  
  <pre><code> echo form_input('username', set_value('username'), "required='required'","placeholder='test'");
  </code></pre>
  
  <p>Am I passing the placeholder correctly?</p>
  
  <p>Also, I tried to pass these attributes by an array by the following code:</p>
  
  <pre><code>$usernameData=array(
      'id'=&gt;'username',
      'value'=&gt;set_value('username'),
      'required'=&gt;'required',
      'placeholder'=&gt;'UserName',
  );
      echo form_input($usernameData);
  </code></pre>
  
  <p>but for the above code set_value does not work! Could you please let me know how I can use set_value in an array and how if I dont use an array (first example), how can I get the placeholder work?</p>
  
  <p>Please let me know if you need more clarification</p>
  
  <p>Thanks</p>