Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Extending MemberLoginForm


Go to End


1308 Views

Avatar
Lukin

Community Member, 56 Posts

8 March 2016 at 12:39am

Hi, I try to extend MemberLoginForm Class to send specials UserGroups to another Page.
Curiously for me,.. I get an error when I apply the extension, even if it is completely empty and
now function are overloaeded....

[ERROR]
Missing argument 1 for MemberLoginForm::__construct()
[/ERROR]


<?php
class MemberLoginFormExtension extends MemberLoginForm {
}

Extesion .yml:
---
Name: extensions
---
Member:
  extensions:
    ['MemberProfileExtension']
MemberLoginForm:
  extensions:
    ['MemberLoginFormExtension']

I have now idea what I'm doing wrong.
Any help appreciated ;)

thanks in advance
fabian