CodeIgniter Forums
Routes and (:hash) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Routes and (:hash) (/thread-75811.html)



Routes and (:hash) - Michal_PB1 - 03-19-2020

Hi,


In the doc I found something like that (:hash) for routing placeholder - here

but I don't know how I should use it. Can anyone tell me that? Smile


Thx


RE: Routes and (:hash) - jreklund - 03-19-2020

There are no difference to (:segment) other than the name. It's just so that you can organize your router differently. So you know what routes you have hashes and need to decode.

You can see a hashids example in this npm package:
https://www.npmjs.com/package/hashids