Welcome Guest, Not a member yet? Register   Sign In
Throw Exception, Validation and Error Handling
#4

Something like this:

PHP Code:
    public function teleNumberValidation(
        $strstring $fields, array $datastring &$error null
    
): bool {
        // ...

        $error $e->getMessage();

        // ...
    

See also https://codeigniter4.github.io/userguide...parameters
Reply


Messages In This Thread
RE: Throw Exception, Validation and Error Handling - by kenjis - 04-05-2022, 04:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB