public function doIndex() { return sprintf('<h1>%s</h1><p><a href="%s">Test</a></p>', $this->testBo->getTest(), $this->router->getTargetForControllerAction('Index', 'Test')); }
/** * Returns the target (eg. URL) for the controller and action * * @param string $controller The name of the controller * @param string $action The name of the action * @param array $params Associative array with the route params, if they are required. * * @return string The target. * * @throws RouterException On errors. (Including if the route is not found) */ public function getTargetForControllerAction($controller, $action, $params = array()) { return $this->reverseRouter->getTargetForControllerAction($controller, $action, $params); }