This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.1 » problem with setLabel
problem with setLabel [message #57090] Sat, 26 July 2008 12:45 Go to next message
onlydust  is currently offline onlydust
Messages: 47
Registered: May 2008
Member
In my form class(not Base) file generated by:
symfony propel:build-forms

I have:
$this->widgetSchema->setLabel('adres_ulica', 'Ulica');

And in form field has label "Adres Ulica" instead of "Ulica". I try to use:
$this->widgetSchema->setLabels(array(
  'adres_ulica' => 'Ulica'));

but it does not work too. What i am doing wrong?
Re: problem with setLabel [message #57096 is a reply to message #57090 ] Sat, 26 July 2008 13:39 Go to previous message
onlydust  is currently offline onlydust
Messages: 47
Registered: May 2008
Member
I am dumb!
In my template I do not have:
<?php echo $form ?>

but for example:
<tr>
        <th><label for="usluga_kategoria_opis">Opis(nieobowiązkowe)</label></th>
        <td>
          <?php echo $form['opis'] ?>
          <?php echo $form['id'] ?>
        </td>
        <td align="left">
          <?php echo $form['opis']->renderError() ?>
        </td>
      </tr>

So i can put any label Smile
Previous Topic:rich textarea in symfony 1.1
Next Topic:Warning: fwrite(): in StreamLogger.class.php on line 73
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software