title: Create a form with no relation to a model in cakePHP
body: <p>I have a form that a user selects a document in. This document is then saved to the webroot folder by the controller.</p>
  
  <p>However, before it even shows the form, it gives me an error:</p>
  
  <pre><code>Missing Database Table
  Error: Table office_layouts for model OfficeLayout was not found in datasource default.
  </code></pre>
  
  <p>Which is correct, there is no database table for office_layouts. But it's not needed. That's why there is no table. The form is just uploaded to the server.</p>
  
  <p>I have read through creating forms, and have tried the following:</p>
  
  <pre><code>// file: View/OfficeLayout/upload.ctp
  echo $this-&gt;Form-&gt;create( null ,array('type' =&gt; 'file')); ?&gt;
  &lt;fieldset&gt;
      &lt;legend&gt;&lt;?php echo __('&amp;emsp;Add Layout for ' . $branch); ?&gt;&lt;/legend&gt;
      &lt;?php
          echo $this-&gt;Form-&gt;input('layout',array('type'=&gt;'file'));
      ?&gt;
  &lt;/fieldset&gt;
  &lt;?php echo $this-&gt;Form-&gt;end(__('Submit')); ?&gt;
  </code></pre>
  
  <p>As well as chaning the <code>null</code> to the controller name (in this case <code>OfficeLayout</code>). I have also removed all parameters (<code>thus creating it like so: $this-&gt;Form-&gt;create()</code>)</p>
  
  <p>In my controller I have the following:</p>
  
  <pre><code>public function upload($branch = null) {
      $this-&gt;set('branch',$branch);
      if(isset($this-&gt;request-&gt;data['OfficeLayout'])) {
          $file = $this-&gt;request-&gt;data['OfficeLayout']['layout'];
          if($file['error'] === UPLOAD_ERR_OK &amp;&amp; move_uploaded_file($file['tmp_name'],APP . 'docs' . DS . 'layouts' . DS . $branch . '.pdf')) {
              $this-&gt;Session-&gt;setFlash('New layout successfully uploaded.','default',array('class'=&gt;'notification'));
              $this-&gt;redirect(array('action'=&gt;$branch));
          } else {
              $this-&gt;Session-&gt;setFlash('Error uploading layout. Please contact web admin.','default',array('class'=&gt;'error'));
          }
      }
  }
  </code></pre>
  
  <p>This action get's called with: <code>domain/office_layouts/upload/branch</code>.</p>
  
  <p>Whenever I remove the <code>$this-&gt;Form-&gt;create()</code> line, it shows the upload view, but then obviously doesn't submit.</p>
  
  <p>So my question in this case is, how can I create a form, without it looking for a table in the database?</p>