title: Cakephp Form input with array options
body: <p>I am using cakephp 3 and using Form->input() and need to pass an array of options. </p>
  
  <p>My array looks like this : </p>
  
  <blockquote>
    <p>$options=['option1', 'option2', 'option3'];</p>
  </blockquote>
  
  <p>I need the values of these options same as labels. Problem is, cakephp is using array index as value. So if someone selects option1, values is going 0. I need the value to be option1. </p>
  
  <p>Edit : </p>
  
  <p>For now, I've changed the array to look like this :</p>
  
  <blockquote>
    <p>$options=['option1'=>'option1', 'option2'=>'option2', 'option3'=>'option3'];</p>
  </blockquote>
  
  <p>It works, but still out of curiosity, is there any other way? </p>