Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZendFramework] Usunięcie elementu z formularza
CzarnyGsm
post
Post #1





Grupa: Zarejestrowani
Postów: 84
Pomógł: 2
Dołączył: 16.04.2007

Ostrzeżenie: (0%)
-----


Witam,

W jaki sposób mogę usunąć z formualrza dla poszczególnego inputa atrybut 'id'?
Mam generowany:
  1. <input type="submit" name="signin"[b] id="signin"[/b] value="Sign in"></p>

A chciałbym
  1. <input type="submit" name="signin" value="Sign in"></p>

W jaki to sposób mogę zrobić?

Mój kod wygląda tak:
  1. ...
  2. $submit = new Zend_Form_Element_Submit('signin');
  3. $submit->setLabel($translator->translate("Sign in"))
  4. ->removeDecorator('label');
  5. ...
  6.  
  7. $this->clearDecorators();
  8. $this->addDecorator('FormElements')
  9. ->addDecorator('HtmlTag')
  10. ->addDecorator('Form', array('class' => 'styletol'));
  11.  
  12. $login->setDecorators(array(
  13. array('ViewHelper'),
  14. array('Description'),
  15. array('HtmlTag'),
  16. ));
  17.  
  18. $this->setElementDecorators(array(
  19. array('ViewHelper'),
  20. array('HtmlTag', array('tag' => 'p'))
  21. ));


Z góry dziękuję za pomoc.

Pozdrawiam
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.08.2025 - 22:40