title: dojo.data is undefined Flitering select
body: <p>I am having a few problems with Dojo Filtering Selects when using the Zend Framework Forms and need some help to find out what I have missed as this is driving me mad.  </p>
  
  <p>I am currently getting this errors in <strong>firebug</strong>:</p>
  
  <ul>
  <li>dojo.data is undefined</li>
  <li>dojo.data.ItemFileReadStore is not a constructor</li>
  </ul>
  
  <p>Below is the code that I am using to create the filter select and provide the json data to the calling controller.</p>
  
  <p><strong>Zend_Form Element</strong> (Dojo Enabled)</p>
  
  <pre><code>$industry = new Zend_Dojo_Form_Element_FilteringSelect('industry');
      $industry-&gt;setAutocomplete(true)
      -&gt;setStoreId('industrystore')
      -&gt;setStoreType('dojo.data.ItemFileReadStore')
      -&gt;setStoreParams(array('url' =&gt; $baseUrl.'/dojo/industry'))
      -&gt;setAttrib("searchAttr", "title")
      -&gt;setRequired(true)
      -&gt;removeDecorator('DtDdWrapper')
      -&gt;removeDecorator('label')
      -&gt;removeDecorator('HtmlTag');
  </code></pre>
  
  <p><strong>Dojo Controller</strong></p>
  
  <pre><code>public function industryAction(){
  
      $db = Zend_Db::factory($this-&gt;config-&gt;database);
  
      $result = $db-&gt;fetchAll("SELECT * FROM industries");
      $data = new Zend_Dojo_Data('industryid', $result);
      $this-&gt;_helper-&gt;autoCompleteDojo($data);
  
      $db-&gt;closeConnection();
  }
  </code></pre>
  
  <p>The annoying thing is all my other Dojo elements on this form and other forms work well it is just whenever I do Filtering Selects that I hit these problems, and this problem causes all the other elements in a form to fail too.</p>
  
  <p>Thanks in advance.</p>