Home N-13 News Forums Help Search
RegisterForgot password?
Login with facebook , twitter and google account aningbo
I have the following error at the top of the page how to fix it Rayc

Latest N-13 News 4.0.2

What is N-13 News?
Where can I get help?

Forums Tutorials Getting the current URL in CakePHP
Chris
Posted on 09 Jan 2012, 04:49:27

Access: Admin
Total Posts: 1349
Joined: 2006-05-19

Getting the current URL is fairly straight forward

echo Router::url($this->here, true);

This will return the full url http://example.com/subdir

If you just want the relative path, use the following

echo $this->here;
#3681
Last edited by Chris at 2012-01-09 16:52:29 Reason: Fixed title
Network-13.com © 2011