Get Refer URL is not a big task in CakePHP now.
Just do the following to get Refer URL:
echo "Referrer URL=" . $this->referer('/') . "<BR>";
echo "Referrer URL=" . $this->referer('/', true) . "<BR>";
Which will output:
Referrer URL=http://localhost/cake/pages/database_check
Referrer URL=/pages/database_check
Just do the following to get Refer URL:
echo "Referrer URL=" . $this->referer('/') . "<BR>";
echo "Referrer URL=" . $this->referer('/', true) . "<BR>";
Which will output:
Referrer URL=http://localhost/cake/pages/database_check
Referrer URL=/pages/database_check
No comments:
Post a Comment