Url->build()
Description
The UrlHelper helps you to generate URLs from your other helpers. It also gives you a single place to customize how URLs are generated by overriding the core helper with an application one.
Usage: UrlHelper(View $view, array $config = []) echo $this->Url->build(['action' => 'view', $cat->id]) echo $this->Url->build(['controller' => 'Users', 'action' => 'logout']) Output: /cats/view/21 /users/logout