I've come into another roadblock while developing my app. I'm having an issue when in my model area. I want to for instance save a user, but I don't have all the fields in the users table yet. If for instance I have a users table with id, email, password, phone_number, but in my controller I have the following:
$user = new User();
$user->email = '[email protected]';
$user->password = 'somepassword';
$user->save();
$user->save(); always returns false for me. When I run through php $user->getMessages();
it says "[field] is required" for all the fields I haven't put it. I've tried putting in my model php public function validation() { }
but that didn't work. I added the validation code from some of the example pages and I got the same result. I've removed it and gotten the same result. I would like some validation on the fields I am trying to input, but I don't want validation if the field is not put in through $user->something or $user->save($_POST, array('filter_fields'));
TIA