Welcome Guest, Not a member yet? Register   Sign In
Form Validation valid_uri
#1

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?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB