title: Silex Framework, no route found for POST
body: <p>I have a little problem with the silex framework (I'm quite sure, that it's caused by Silex)..</p>
  
  <p>I have a form and want to submit it with POST, but Silex throws the following exceptions:</p>
  
  <p>MethodNotAllowedException in UrlMatcher.php line 101:</p>
  
  <p>MethodNotAllowedHttpException in RouterListener.php line 149:
  No route found for "POST /checkPW": Method Not Allowed (Allow: GET)</p>
  
  <p>Thats what my controller looks like:</p>
  
  <pre><code>$app-&gt;get('/checkPW', function () use ($app) {
  return $app['templating']-&gt;render(
      'checkPW_blog.php'
  );
  });
  </code></pre>
  
  <p>And that's what the form looks like:</p>
  
  <pre><code>&lt;form method="post" action="/checkPW"&gt;
                                              &lt;div class="modal-body"&gt;
                                                  &lt;div class="form-group"&gt;
                                                      &lt;input type="password" class="form-control" id="password"
                                                             name="password"
                                                             placeholder="Passwort"&gt;
                                                  &lt;/div&gt;
                                              &lt;/div&gt;
                                              &lt;div class="modal-footer"&gt;
                                                  &lt;button type="submit" class="btn btn-success" id="submitPW"&gt;
                                                      Passwort bestätigen
                                                  &lt;/button&gt;
                                              &lt;/div&gt;
                                          &lt;/form&gt;
  </code></pre>
  
  <p>(realised with Bootstrap)</p>
  
  <p>The bizarre thing is, that when I send the form with the method GET instead of POST everything works fine...</p>
  
  <p>Does anybody know whats the problem here..?
  Thanks all.</p>