UnionOfRAD/lithium — Issue #321: $this->form->create() pass un-want parameters to Router::match()
Author: Leechael
Created: 2012-02-09 08:34:21+00:00
State: open

recently I create a library with form, I configured route rules like:

```PHP

Router::connect('/foo/bar', array('controller' => 'foo.Foo', 'action' => 'bar'));
```

In target template, I call:

```PHP
$this->form->create()
```

Then I got 'lithium\net\http\RoutingException' with message 'No parameter match found for URL xxxx'.

The problem cause by pass $request->params to Router::match(), and $request->params have extra field named 'library', which undeclared in route rule configuration.

Possible solution:

When compiling route rule, append library field to Route::$_match or do something more check?