__("user"), 'required' => true)); $pass = array('Password', 'login_password', array( 'label' => __("password"))); $this->setMainElements(array($user, $pass)) ->addElement('Hidden', 'login_geom_id', array( 'decorators' => array('ViewHelper'))); $currentUri = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri(); if (strpos($currentUri, '?') !== false) { $currentUri = strstr($currentUri, '?', true); } $href = $this->getView()->addParamToUrl('newpwd', 'redirect', $currentUri, true); $anchor = $this->getView()->Anchor($href, $this->getTranslator()->translate("I forgot my password"), array('id' => 'newpwd_control_anchor')); $this->addElement('Submit', 'login_submit', array('label' => __("login"), 'description' => $anchor)); $decorator = $this->login_submit->getDecorator('Description'); $decorator->setOption('escape', false); } }