title: Cakephp display view fields that is set by select elements in form
body: <p>I am having problem displaying values set by select elements created by <code>FormHelper</code>.  I have searched the internet but doesn't seem to be able to find the answer.  Here is the scene:</p>
  
  <p>I have a questionnaire form that has many options.  In the model I put those items into an array, say (<code>$frequencyOptions</code>) and when <code>formhelper</code> is used, </p>
  
  <pre><code>$this-&gt;Form-&gt;input('frequency',array("options"=&gt; $frequencyOptions));
  </code></pre>
  
  <p>Currently, the option value is the array index, which looks like:</p>
  
  <pre><code>    &lt;option value=""&gt;(choose one)&lt;/option&gt;
      &lt;option value="0"&gt;Rare&lt;/option&gt;
      &lt;option value="1"&gt;Frequent&lt;/option&gt;
      &lt;option value="2"&gt;Moderate&lt;/option&gt;
  </code></pre>
  
  <p>Of course I know that if I set the key as well when constructing the <code>$frequencyOptions</code> variable like </p>
  
  <pre><code>$frequencyOptions = array("Rare" =&gt; "Rare", ...
  </code></pre>
  
  <p>I will be able to store the value in text.  </p>
  
  <p>However, since some of these options are very very long, I would prefer to save them in INT in the database.  </p>
  
  <p>Yet the challenge I have at this moment is how to display those fields in the "list" in the index page.  When I use the form field to display in the view or edit action, it is okay because the select element will be used again.  However, if I want to display it in plain text, how should I "translate" it?</p>
  
  <p>One thing I can think of is to create these "conversion" methods in the Model, but I think calling model method in views is not a good practice in MVC.</p>
  
  <p>Any idea?</p>