Skip to content

Instantly share code, notes, and snippets.

@ClementDuez
Created December 18, 2012 15:33
Show Gist options
  • Save ClementDuez/4328988 to your computer and use it in GitHub Desktop.
Save ClementDuez/4328988 to your computer and use it in GitHub Desktop.
Classe de login pour les form pour benj
<?php
$this->headTitle("se connecter");
$form = $this->form;
$form->setAttribute('action', $this->url('user', array('action' => 'login')));
echo $this->form()->openTag($form);
?>
<dl class="zend_form">
<dd><?php
echo $this->formInput($form->get('email'));
echo $this->formElementErrors($form->get('email'));
?></dd>
<dd><?php
echo $this->formInput($form->get('password'));
echo $this->formElementErrors($form->get('password'));
?></dd>
<dd><?php
echo $this->formInput($form->get('submit'));
echo $this->formElementErrors($form->get('submit'));
?></dd>
</dl>
<?php echo $this->form()->closeTag($form); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment