How can I get the string comes after # sign the URL by using CodeIgniter?
example:
http://site.com/controller/function/#bla-bla
How can I get the string comes after # sign the URL by using CodeIgniter?
example:
http://site.com/controller/function/#bla-bla
You can't get the URL hash via PHP or CI.
This belongs to client-side, you should use JavaScript to achieve this:
var hash = window.location.hash;
console.log(hash); // "#bla-bla"
And you can remove the # character by substr(1):
console.log(hash.substr(1)); // "bla-bla"