Как обратиться к этому массиву внутри объекта $this->form_validation
[email]=>array([error]=>'')
к примеру распечатать этот массив
Вот Этот Объект
PHP:
скопировать код в буфер обмена
[form_validation] => CI_Form_validation Object *RECURSION* ) [_field_data :protected] => Array ( ( [field] => fname [label] => Full Name ( [1] => xss_clean [2] => required [3] => min_length[4] [4] => max_length[25] ) ( ) ( ) [postdata] => Andrey [error] => ) ( [field] => email [label] => Email ( [1] => xss_clean [2] => required [3] => valid_email [4] => callback_email_not_exists ) ( ) ( ) [postdata] => imediasun@gmail.com [error] => Unable to access an error message corresponding to your field name Email.(email_not_exists) ) ( [field] => username [label] => Username ( [1] => xss_clean [2] => required [3] => min_length[4] [4] => max_length[25] [5] => callback_username_not_exists ) ( ) ( ) [postdata] => imediasun [error] => Unable to access an error message corresponding to your field name Username.(username_not_exists) ) ( [field] => password [label] => Password ( [1] => xss_clean [2] => required ) ( ) ( ) [postdata] => sunimedia [error] => ) ( [field] => conf_password [label] => Confirm password ( [0] => required [1] => min_length[5] [2] => matches[password] ) ( ) ( ) [postdata] => sunimedia [error] => ) ) [_config_rules :protected] => Array ( ) [_error_array :protected] => Array ( [email] => Unable to access an error message corresponding to your field name Email.(email_not_exists) [username] => Unable to access an error message corresponding to your field name Username.(username_not_exists) ) [_error_messages :protected] => Array ( ) [_error_prefix:protected] => [_error_suffix:protected] => [error_string:protected] => [_safe_form_data:protected] => 1 [validation_data ] => Array ( )
(Отредактировано автором: 23 Октября, 2015 - 21:47:25)
|