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, Ed, biapar, Willr, Ingo, swaiba

i18n 99% there


Go to End
Reply


10 Posts   1364 Views

Avatar
novaweb

Community Member, 115 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