How to get complete current url for Cakephp
I prefer this, because if I don't mention "request" word, my IDE gives warning.
<?php echo $this->request->here; ?>
API Document:class-CakeRequest
Edit:To clarify all options
Current URL: http://example.com/en/controller/action/?query=12// Router::url(null, true)http://example.com/en/controller/action/// Router::url(null, false)/en/controller/action/// $this->request->here/en/controller/action/// $this->request->here()/en/controller/action/?query=12// $this->request->here(false)/en/controller/action/?query=12// $this->request->urlen/controller/action// $_SERVER["REQUEST_URI"]/en/controller/action/?query=12// strtok($_SERVER["REQUEST_URI"],'?');/en/controller/action/