1779 Posts in 582 Topics by 556 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1509 Views |
-
populate form with users data

21 September 2009 at 8:02pm
hi,
how can I populate a form with the users data which is logged in?
I generated the form with scaffoldFormFields.the form is only accessable for logged in users, I set this up on
the "Access" Tab.thx
daniel -
Re: populate form with users data

22 September 2009 at 12:32am
solved with help from silverstripe IRC channel
it seems there is more help than in this form - very much key questions dont have an answer.
$member = Member::currentUser();
$form->loadDataFrom($member);daniel
| 1509 Views | ||
|
Page:
1
|
Go to Top |

