title: cakephp 2.x ajax form in bootstrap modal
body: <p>I have an ajax form in a modal bootstrap window but it doesn't load the form, instead of that is loading a hidden input and  the form is missing 
  here is my code: </p>
  
  <pre><code>&lt;?php  $data = $this-&gt;Js-&gt;get('#UserSaveProjectsForm')-&gt;serializeForm(array('isForm' =&gt; true, 'inline' =&gt; true));
  $this-&gt;Js-&gt;get('#UserSaveProjectsForm')-&gt;event(
        'submit',
        $this-&gt;Js-&gt;request(
          array('action' =&gt; 'save_projects'),
          array(
                  'update' =&gt; '#commentStatus',
                  'data' =&gt; $data,
                  'async' =&gt; true,    
                  'dataExpression'=&gt;true,
                  'method' =&gt; 'POST'
              )
          )
      );?&gt;
  
  &lt;div id="myModal" class="modal hide fade" style="width: 335px; left:56%;" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
  &lt;div class="modal-header"&gt;
      &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&lt;i class="icon-remove icon-black"&gt;&lt;/i&gt;&lt;/button&gt;
      &lt;h3 id="myModalLabel"&gt;Assign Projects&lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="modal-body" style="width: 300px;"&gt;
      &lt;?php echo $this-&gt;Form-&gt;create('User', array( 'action'=&gt; 'save_projects' ,'class' =&gt; 'form-horizontal validationEngine ')); ?&gt;
      &lt;?php  echo $this-&gt;Form-&gt;input('User.id', array('type' =&gt;'hidden','label' =&gt; false)); ?&gt;
      &lt;?php  echo $this-&gt;Form-&gt;input('Agentgroup', array('options'=&gt; $agent_groups,'multiple'=&gt;true ,'class' =&gt;'multiple','label' =&gt; false)); ?&gt;
      &lt;?php echo $this-&gt;Form-&gt;end(__('Assign')); ?&gt; 
  &lt;?php echo $this-&gt;Js-&gt;writeBuffer(); ?&gt;
  &lt;/div&gt;
  &lt;div class="modal-footer"&gt;
  &lt;button class="btn" data-dismiss="modal" aria-hidden="true"&gt;Cancel&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>And here is what is generated:</p>
  
  <pre><code>&lt;div style="width: 300px;" class="modal-body"&gt;
      &lt;div style="display:none;"&gt;&lt;input type="hidden" value="POST" name="_method"&gt;&lt;/div&gt;      &lt;input type="hidden" id="UserId" value="30" name="data[User]
  </code></pre>