Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->login_fs = Fieldset::forge();
- $this->login_fs->add('email', '', array(
- 'placeholder' => 'E-Mail',
- 'type' => 'text',
- 'id' => 'email',
- 'name' => 'email'
- ), array(array('required'), array('valid_email'))
- );
- $this->login_fs->add('password', '', array(
- 'placeholder' => 'Password',
- 'type' => 'password',
- 'id' => 'password',
- 'name' => 'password'
- ), array(array('required'), array('max_length', array(100)))
- );
- $this->login_fs->add('log_submit', '', array(
- 'type' => 'submit',
- 'value' => 'Sign in'
- ), array(array('required'), array('max_length', array(100)))
- );
- $this->reg_fs = Fieldset::forge();
- $this->reg_fs->add('reg_email', '', array(
- 'placeholder' => 'E-Mail',
- 'type' => 'text',
- 'id' => 'email',
- 'name' => 'email'
- ), array(array('required'), array('valid_email'))
- );
- $this->reg_fs->add('reg_password', '', array(
- 'placeholder' => 'Password',
- 'type' => 'password',
- 'id' => 'password',
- 'name' => 'password1'
- ), array(array('required'), array('max_length', array(100)))
- );
- $this->reg_fs->add('reg_password2', '', array(
- 'placeholder' => 'Repeat',
- 'type' => 'password',
- 'id' => 'password',
- 'name' => 'password2'
- ), array(array('required'), array('max_length', array(100)))
- );
- $this->reg_fs->add('reg_submit', '', array(
- 'type' => 'submit',
- 'value' => 'Sign in'
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment