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.

General Questions /

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

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

i18n 99% there


Go to End


10 Posts   1963 Views

Avatar
novaweb

Community Member, 116 Posts

22 March 2012 at 8:32am

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

Community Member, 87 Posts

22 March 2012 at 10:11am

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

Jose

Go to Top