How to get complete current url for Cakephp

前端 未结 24 1274
长情又很酷
长情又很酷 2020-12-08 00:10

How do you echo out current URL in Cake\'s view?

24条回答
  •  悲&欢浪女
    2020-12-08 00:41

    In the request object you have everything you need. To understand it:

    debug($this->request->url);
    

    and in your case

    $here = $this->request->url;
    

提交回复
热议问题