Hi, I'm using this library to format phone numbers on the views, but input data is not validated, so this can come to Exception errors.
What I want is to check the data before sending it to the view, in the controller or ideally in the model. Is there a isValidNumber() or similar function available, or another way to accomplish this?
Hi, I'm using this library to format phone numbers on the views, but input data is not validated, so this can come to Exception errors.
What I want is to check the data before sending it to the view, in the controller or ideally in the model. Is there a isValidNumber() or similar function available, or another way to accomplish this?