ブログスレッド
- CakePHP3: Get the full URL of the current page
下のフォームに記入し、Eメールをお送りください。件名とメッセージは必須項 目です。
$url = $this->Url->build([
"controller" => "Posts",
"action" => "search",
"?" => ["foo" => "bar"]
],true);
use Cake\Routing\Router;
$url = Router::url([
'controller' => 'Posts',
'action' => 'search',
'?' => ['foo' => $bar]
], true);