title: How to get a list of cms pages in Magento?
body: <p><strong>What i'm trying todo</strong></p>
  
  <p>I have created an admin form where the user needs to select a CMS page from a drop down.</p>
  
  <p><strong>What i have tried</strong></p>
  
  <pre><code>$form-&gt;addField('cms_page_id', 'select', array(
  'label'     =&gt; Mage::helper('custom/data')-&gt;__('CMS Page'),
  'class'     =&gt; 'required-entry',
  'required'  =&gt; true,
  'name'      =&gt; 'cms_page_id',
  'values'    =&gt; Mage::getSingleton('cms/page')-&gt;toOptionArray(),
  'value'     =&gt; $this-&gt;getCmsPageId()
  ));
  </code></pre>
  
  <p>The idea is the code gets the an option array from the CMS model. However "toOptionArray" is an invalid function for the 'cms/page' model.</p>
  
  <p><strong>My Question</strong></p>
  
  <p>How can I get an option array of CMS pages for use in an admin form in Magento?</p>