CodeIgniter 4 Pre-Alpha 1: Obfuscated IDs and routing |
In CodeIgniter 4 Pre-Alpha 1 there is built-in feature for obfuscating ID's that is managed by the sort of "mini-AR" for models. So, this is and example from the documentation:
Code: // Creates something like: http://exmample.com/users/MTIz I think, there should be introduced a placeholder (a named sub-pattern) within the router that is to recognize the corresponding hashes. currently there are these placeholders: (:any) (:segment) (:num) (:alpha) (:alphanum) If the format of the resulting hash makes possible it to be distinguished with reliability then a new placeholder for routing patterns can be introduced, (:hash) or with similar name. |
Messages In This Thread |
CodeIgniter 4 Pre-Alpha 1: Obfuscated IDs and routing - by ivantcholakov - 06-26-2016, 02:03 AM
RE: CodeIgniter 4 Pre-Alpha 1: Obfuscated IDs and routing - by kilishan - 06-26-2016, 12:16 PM
RE: CodeIgniter 4 Pre-Alpha 1: Obfuscated IDs and routing - by kilishan - 06-27-2016, 10:44 AM
RE: CodeIgniter 4 Pre-Alpha 1: Obfuscated IDs and routing - by ivantcholakov - 06-27-2016, 12:18 PM
RE: CodeIgniter 4 Pre-Alpha 1: Obfuscated IDs and routing - by phambinh217 - 06-27-2016, 04:52 PM
|