Posted By


godrar on 02/19/11

Tagged


Statistics


Viewed 580 times
Favorited by 0 user(s)

Related snippets


Oznaczenie wymaganych pól formularza gwiazdką


/ Published in: Symfony
Save to your folder(s)

Wstawia gwiazdki na końcu, za widgetem.


Copy this code and paste it in your HTML
  1. public function configure()
  2. {
  3. $this->widgetSchema->setHelps(array(
  4. 'email' => '*',
  5. 'firstname' => '*',
  6. 'lastname' => '*'
  7. 'phone' => '*<br />jakiÅ› help'
  8. ));
  9.  
  10. // ustawienie gwiazdek(Help) w tej samej komórce aby były w jednej linii
  11. // czyli bez dodatkowego formatowania
  12. $this->widgetSchema->getFormFormatter()->setHelpFormat('%help%');
  13. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.