Yii form validation: variable containing the error -
i'm using gridview form in yii. if have validation error example textfield, how can access variable stores fact of error? because change background color of grid based on this. have in gridview's column (because a little trick):
array( 'value' => 'chtml::textfield("orderproduct[$row][pcs]", $_post["orderproduct"][$row]["pcs"], array("id" => "orderproduct_" . $row . "_pcs", "style" => "width: 20px; "))', 'type' => 'raw', ),
but think error should there somewhere, , should have id or something, can't find it. lot!
Comments
Post a Comment