[eluser]Noobigniter[/eluser]
Hi,
I try for a while, despite the documentation, to define a message for each is_unique, but without success.
Everything works well with one set_message.
If I add one, it overrides the previous one, so I tried this:
Code:
$this->form_validation->set_rules(' ... |is_unique[menu.page]|xss_clean');
$this->form_validation->set_message('is_unique[menu.page]', 'Cette %s est déjà présente.');
but I get the following error:
Code:
Unable to access an error message corresponding to your field name.
How to proceed to have several different messages ?
It is necessary to use personal callback_ ?
In advance, thank you.