This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hello, I've extended my user model more or less according to screencast. I've added a few fileds, everything works in backend, in frontend, it loads the fields but I'm not able to save them in profile form (I use my own copy of original form where I added some validation, basicly copy&paste of the rainlab plugin).
UserModel::extend(function($model) {
$model->addFillable('... list of extra fileds ...');
});
Am I missing something?
I have a same plugin: https://github.com/gergo85/oc-user-plus
Look at the source code of this plugin or watch this video: https://vimeo.com/108040919
Last updated
As I stated, I watched the video, it works for me in backend as it should, problem is in frontend. When I call onUpdate (copy in my plugin), it runs validation as it should but
$data = post();
// validation
$user->save($data);
simply wont save anything without any visible error. I opened updated version of User plugin now on git to see they use fill method first now, but it shouldnt matter, I took code from the up to date version on my machine.
Last updated
I had similar problem but found issue. See: http://octobercms.com/plugin/kurtjensen-profile/frontend-update-doesnt-work
1-5 of 5