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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

i18n 99% there


Reply

10 Posts   983 Views

Avatar
novaweb

22 March 2012 at 8:32am Community Member, 115 Posts

Ok i'll help you out a little bit more:

function SigninForm(){
   $form = new Form(
      $this,
      "SigninForm",
      new FieldSet(
         $email = new TextField("Email", _t('CustomLoginForm.ENTEREMAIL')),
         $password = new PasswordField("password", _t('CustomLoginForm.ENTERPASSWORD', 'Enter Password'))
         
      ),
      new FieldSet(
         $dosignin = new FormAction("doLogin", _t("CustomLoginForm.SIGNINBUTTON", "Sign In"))
      ),
      new RequiredFields(
         array(
            'password'
         )
      )
   );
   return $form;
}

Avatar
Josua

22 March 2012 at 10:11am Community Member, 86 Posts

Josh, Many thanks for your help, you're fabulous. :)

Jose