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.

Form Questions

Overriding Login Template and Class


2 Posts   2050 Views


23 January 2010 at 1:14am Forum Moderator, 435 Posts


I've to create a new template for login page, but I don't understand how made it. I create a new class MyMemberLoginForm that extend MemberLoginForm and, but don't works.

Into class; Iwrite only declaration, because I don't add any new fields or overriding function.

class MyMemberLoginForm extends MemberLoginForm {


Then Into config file , I add Object::useCustomClass('MemberLoginForm', 'MyMemberLoginForm ');

How are the right steps?

Thank you


29 January 2010 at 7:45am Community Member, 528 Posts

I think you need to declare the new template in MyMemberLoginForm

function forTemplate() {
return $this->renderWith(array(

And then make a template