From 9c19e4e92b2c3fdfa42c2cfd57403e716be9ffd1 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 1 Apr 2018 02:59:54 +0900 Subject: [PATCH] =?UTF-8?q?validator=EC=97=90=20errorStr=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=EB=A1=9C=20=EB=AC=B6=EC=96=B4=EC=84=9C=20=EB=B3=B4?= =?UTF-8?q?=EC=97=AC=EC=A3=BC=EB=8A=94=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sammo/Validator.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sammo/Validator.php b/src/sammo/Validator.php index 5defd0cd..ab3b346a 100644 --- a/src/sammo/Validator.php +++ b/src/sammo/Validator.php @@ -3,4 +3,11 @@ namespace sammo; class Validator extends \Valitron\Validator{ protected static $_lang = 'ko'; + + public function errorStr(){ + $errors = array_values((array)$this->errors()); + $errors = array_map(function($value){return join(', ', $value);}, $errors); + $errors = join(', ', $errors); + return $errors; + } } \ No newline at end of file