コード例 #1
0
 public function doIndex()
 {
     return sprintf('<h1>%s</h1><p><a href="%s">Test</a></p>', $this->testBo->getTest(), $this->router->getTargetForControllerAction('Index', 'Test'));
 }
コード例 #2
0
ファイル: ArrayRouter.php プロジェクト: szeber/yapep_base
 /**
  * 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);
 }