Skip to content

Commit 8228782

Browse files
committed
✨ add the errorsAsArray(), configurationRules(), useExcept() and useOnly methods
Signed-off-by: otengkwame <developerkwame@gmail.com>
1 parent 9705c16 commit 8228782

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

CodeIgniter/Framework/libraries/Form_validation.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,17 @@ public function error_array()
451451

452452
// --------------------------------------------------------------------
453453

454+
/**
455+
* Get Validation Errors As Array
456+
*
457+
* @return array
458+
*/
459+
public function errorsAsArray()
460+
{
461+
return $this->_error_array;
462+
}
463+
464+
454465
/**
455466
* Error String
456467
*

0 commit comments

Comments
 (0)