public function match($path, $partial = false) { $path = $path->getPathInfo(); $match = parent::match($path, $partial); if (is_array($match)) { $this->setMatchedPath($this->_route); } return $match; }
public function testRootRoute() { $route = new Zend_Controller_Router_Route_Static('/'); $values = $route->match(''); $this->assertSame(array(), $values); }
/** * Matches a user submitted path with a previously defined route. * Assigns and returns an array of defaults on a successful match. * * @param string $path Path used to match against this routing map * @return array|false An array of assigned values or a false on a mismatch */ public function match($path, $partial = false) { return parent::match(trim($path, '/'), true); }