Welcome Guest, Not a member yet? Register   Sign In
DataMapper, Validation, Crud issues
#8

[eluser]freshfutures[/eluser]
[quote author="whoisinkus" date="1311479325"]
I found that the datamapper_lang file lacked a 'required' entry, I added one like this on line 16:

Code:
$lang['required']    = 'The %s field is required.';
[/quote]

Thanks for posting, I should have updated this thread as I managed to fix the issue by doing exactly the same thing you mentioned by copying the form_validation language strings into the datamapper_lang file Smile

Quote:I've found that just using the form_value() function still works while using Datamapper validation. Are you getting different results?

The site I'm working on is using CI 1.7 and I realize you're using 2, so perhaps that has something to do w/ it, but thought I throw that out there and see if it got you anywhere.

To confirm it works in Reactor as well, the problem existed between keyboard and chair Wink


Messages In This Thread
DataMapper, Validation, Crud issues - by El Forum - 07-11-2011, 04:50 PM
DataMapper, Validation, Crud issues - by El Forum - 07-11-2011, 11:54 PM
DataMapper, Validation, Crud issues - by El Forum - 07-12-2011, 03:07 AM
DataMapper, Validation, Crud issues - by El Forum - 07-12-2011, 04:37 AM
DataMapper, Validation, Crud issues - by El Forum - 07-12-2011, 06:28 AM
DataMapper, Validation, Crud issues - by El Forum - 07-12-2011, 09:33 AM
DataMapper, Validation, Crud issues - by El Forum - 07-23-2011, 04:48 PM
DataMapper, Validation, Crud issues - by El Forum - 07-24-2011, 03:01 AM
DataMapper, Validation, Crud issues - by El Forum - 07-29-2011, 06:46 PM
DataMapper, Validation, Crud issues - by El Forum - 07-30-2011, 02:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB