Skip to content

Commit

Permalink
Pass form object along to form partial
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielss89 committed Dec 21, 2015
1 parent e755d96 commit c524269
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion view/zfc-user/user/changeemail.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ $form->setAttribute('action', $this->url('zfcuser/changeemail'));
$form->setAttribute('method', 'post');
?>

<?php echo $this->partial('_form.phtml'); ?>
<?php echo $this->partial('_form.phtml', ['form' => $form]); ?>
2 changes: 1 addition & 1 deletion view/zfc-user/user/changepassword.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ $emailElement = $form->get('identity');
$emailElement->setValue($this->zfcUserIdentity()->getEmail());
?>

<?php echo $this->partial('_form.phtml'); ?>
<?php echo $this->partial('_form.phtml', ['form' => $form]); ?>
4 changes: 2 additions & 2 deletions view/zfc-user/user/login.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ $form->setAttribute('method', 'post');
$form->setAttribute('autocomplete', 'off');
?>

<?php echo $this->partial('_form.phtml'); ?>
<?php echo $this->partial('_form.phtml', ['form' => $form]); ?>

<?php if ($this->enableRegistration) : ?>
<?php echo $this->translate('Not registered?'); ?> <a href="<?php echo $this->url('zfcuser/register') . ($this->redirect ? '?redirect='.$this->escapeUrl($this->redirect) : '') ?>"><?php echo $this->translate('Sign up!'); ?></a>
<?php endif; ?>
<?php endif; ?>
2 changes: 1 addition & 1 deletion view/zfc-user/user/register.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ $form->setAttribute('method', 'post');
$form->setAttribute('autocomplete', 'off');
?>

<?php echo $this->partial('_form.phtml'); ?>
<?php echo $this->partial('_form.phtml', ['form' => $form]); ?>

0 comments on commit c524269

Please sign in to comment.