Skip to content

Commit c36bf10

Browse files
author
Elias De Vos
committed
remove duplicate docs
1 parent 2a993a6 commit c36bf10

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

src/Routing/Router.php

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -692,27 +692,7 @@ public static function url($url = null, $full = false)
692692
*
693693
* ### Usage
694694
*
695-
* - `Router::url('/posts/edit/1');` Returns the string with the base dir prepended.
696-
* This usage does not use reverser routing.
697-
* - `Router::url(['controller' => 'posts', 'action' => 'edit']);` Returns a URL
698-
* generated through reverse routing.
699-
* - `Router::url(['_name' => 'custom-name', ...]);` Returns a URL generated
700-
* through reverse routing. This form allows you to leverage named routes.
701-
*
702-
* There are a few 'special' parameters that can change the final URL string that is generated
703-
*
704-
* - `_base` - Set to false to remove the base path from the generated URL. If your application
705-
* is not in the root directory, this can be used to generate URLs that are 'cake relative'.
706-
* cake relative URLs are required when using requestAction.
707-
* - `_scheme` - Set to create links on different schemes like `webcal` or `ftp`. Defaults
708-
* to the current scheme.
709-
* - `_host` - Set the host to use for the link. Defaults to the current host.
710-
* - `_port` - Set the port if you need to create links on non-standard ports.
711-
* - `_full` - If true output of `Router::fullBaseUrl()` will be prepended to generated URLs.
712-
* - `#` - Allows you to set URL hash fragments.
713-
* - `_ssl` - Set to true to convert the generated URL to https, or false to force http.
714-
* - `_name` - Name of route. If you have setup named routes you can use this key
715-
* to specify it.
695+
* @see Router::url()
716696
*
717697
* @param string|array|null $url An array specifying any of the following:
718698
* 'controller', 'action', 'plugin' additionally, you can provide routed

0 commit comments

Comments
 (0)