Welcome Guest, Not a member yet? Register   Sign In
Add HTML in custom error message
#1

Hi, i need to add a link in is_unique error custom message. How can i do?

PHP Code:
'email'     => [
        'label'   => lang('Main.formLabelEmail'),
        'rules'   => 'required|valid_email|is_unique[utenti_it.email,email,$email]',
        'errors' => [
                'is_unique' => 'your email is registred. Please follow this <a href="https://mylink.com">link</a>',

            

Thanks for help me.
Reply
#2

You can create custom error template:
https://codeigniter4.github.io/CodeIgnit...or-display
Reply




Theme © iAndrew 2016 - Forum software by © MyBB