Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZendFramework]Form / dekorator - jak ustawić title dla label
ShadowD
post
Post #1





Grupa: Zarejestrowani
Postów: 1 333
Pomógł: 137
Dołączył: 25.03.2008
Skąd: jesteś??

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


Hej,
za pomocą:
  1. $login
  2. ->setLabel('Login:')
  3. ->setAttrib('title','Login')


Mogę dodać title dla elementu input, chciał bym również dodać go do lable, czy istnieje taka możliwość?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Pilsener
post
Post #2





Grupa: Zarejestrowani
Postów: 1 590
Pomógł: 185
Dołączył: 19.04.2006
Skąd: Gdańsk

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


Przykład użycia dekoratorów przy pomocy tablic:

  1. $form_element->setDecorators(array(
  2. array('ViewHelper'),
  3. array('Errors'),
  4. array(array('data'=>'HtmlTag'), array('tag' => 'span')),
  5. array('Label', array('tag' => 'label','title' => 'sfffe fererff refererf ererg ergerger gergerg')),
  6. array(array('row'=>'HtmlTag'),array('tag'=>'div','openOnly'=>true))
  7. ));


Można też na obiektach:
  1. $object = new Zend_Form_Decorator....;
  2. $object->metoda();
  3. // itp. itd.


Jak używasz IDE to masz podgląd listy metod wraz z opisem.
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.12.2025 - 08:52