Form Validation valid_uri - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Form Validation valid_uri (/showthread.php?tid=67000) |
Form Validation valid_uri - enlivenapp - 12-31-2016 This might be a feature request, or a suggestion for what I'm working on... depends on what the CI Dev team thinks. I'm working on a site and have come across a need to validate multiple URI segments when the user submits a form which may or may not have a forward slash. For more details, all below would be a valid uri: page 2016/12/some-great-page 2016/12/another_great_page this/is_a/great-page Would it be beneficial for CI to offer valid_uri in form validation which would be the same as alpha_dash functionality but included forward slashes or is this such an edge case one should just do a callback and explode on the forward slash and validate (essentially, alpha_dash) foreach loop through them? |