Jump to:

23487 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » i18n 99% there

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

Page: 1 2
Go to End
Author Topic: 958 Views
  • novaweb
    Avatar
    Community Member
    115 Posts

    Re: i18n 99% there Link to this post

    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;
    }

  • Josua
    Avatar
    Community Member
    86 Posts

    Re: i18n 99% there Link to this post

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

    Jose

    958 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.