41 lines
744 B
PHP
41 lines
744 B
PHP
<?php
|
|
|
|
class IndexController extends Zend_Controller_Action
|
|
{
|
|
|
|
public function init()
|
|
{
|
|
/* Initialize action controller here */
|
|
}
|
|
|
|
public function indexAction()
|
|
{
|
|
// action body
|
|
$form = new Zend_Form();
|
|
$form->setAction('login');
|
|
$form->setMethod('post');
|
|
$form->addElement('text', 'login',
|
|
array(
|
|
'label' => 'Identifiant : ',
|
|
'required' => 'true',
|
|
)
|
|
);
|
|
$form->addElement('password', 'pass',
|
|
array(
|
|
'label' => 'Mot de passe : ',
|
|
'required' => 'true',
|
|
)
|
|
);
|
|
|
|
$form->addElement('submit', 'submit',
|
|
array(
|
|
'label' => 'Identification',
|
|
'ignore' => true,
|
|
));
|
|
|
|
$this->view->form = $form;
|
|
}
|
|
|
|
}
|
|
|