Returns a boolean value indicating whether this is a continuation route. If true, this
route will allow incoming requests to "fall through" to other routes, aggregating parameters
for both this route and any subsequent routes.
public canContinue ( ) : boolean | ||
return | boolean | Returns the value of `$_config['continue']`. |
public function testContinuationRoute() { $route = new Route(); $this->assertFalse($route->canContinue()); $route = new Route(array('continue' => true)); $this->assertTrue($route->canContinue()); $route = new Route(array('template' => '/admin/{:args}', 'continue' => true, 'params' => array('admin' => true))); $result = $route->match(array('admin' => true, 'args' => '')); $this->assertEqual('/admin/{:args}', $result); }