DMZ 1.7.1 (DataMapper OverZealous Edition) |
[eluser]Alface[/eluser]
I Extend the DataMapper Directly for fix the validation rule "file_required", because DMZ use the CI function for to it, and it can't handdle it, and then I used an "Form Validation extention with File for Code Igniter": Forum: http://ellislab.com/forums/viewthread/123816/ Site: http://devbro.com/testing/ci_form_validation/ And to do this I I extended the function validate with is not possible extend on DMZ 1.71 because it is private. I just changed line 1508 of application/libraries/datamapper.php Code: if ( ! $related && ! in_array('required', $rules)) Code: if ( ! $related && ! in_array('required', $rules)&& ! in_array('file_required', $rules)) // Mod file_required :: I think we should implement it on this version of DMZ, dont you think? If don't think so, how could I make DMZ use this mod and not CI native? Thanks |
Welcome Guest, Not a member yet? Register Sign In |