title: Yii, creating a listdata from a different file
body: <p>i want to make a ListData that will contain the content from a different file instead of DB, the file from where im going to get the data is going to be like:</p>
  
  <pre><code>1=&gt;Usa
  2=&gt;France
  3=&gt;Italy
  4=&gt;Spain
  5=&gt;Venezuela
  etc..
  </code></pre>
  
  <p>the porpuse of this is to make a DropdownList that will show the Country Items but its saving data is going to be just a id from the selected country..</p>
  
  <p>i do know how to make the DropdownList, but im not sure about the ListData, im learning programming, sorry for asking such a ridiculous question.</p>
  
  <p>please help.</p>