0 0
94 views
To get current url in cakephp use,  echo Router::url($this->here, true); This will give full URL with hostname.If you want to get relative path instead of full URL,then use the following code: echo $this->here; This will produce absolute URL excluding hostname i.e. /controller/abc/xyz/ ...

Please explain why do you think this question should be reported?

Report Cancel

0 0
58 views
Components are packages of logic that are shared between controllers. They are useful when a common logic or code is required between different controllers. Please follow and ...

Please explain why do you think this question should be reported?

Report Cancel