ドキュメントhereに従って、コントローラーにこれらの検証チェックがあるとします。
$this->form_validation->set_rules('username', 'Username', 'required');
$this->form_validation->set_rules('password', 'Password', 'required');
$this->form_validation->set_rules('passconf', 'Password Confirmation', 'required');
$this->form_validation->set_rules('email', 'Email', 'required|valid_email|is_unique[users.email]')
<?php echo validation_errors(); ?>
失敗したすべてのルールを提供するために使用できます。
検証に失敗した最初のルール を取得するにはどうすればよいですか?