Hi,

What i mean is, in a form we can define the labels for a field name in
the form class, but on the showSucess we can't do it. We need write
always the field names manual? Doesn't exist anything similiar to
renderLabel() from forms?

Instead of:

<table>
  <tbody>
    <tr>
      <th>Id:</th>
      <td><?php echo $leads->getId() ?></td>
    </tr>
    <tr>
      <th>Id user:</th>
      <td><?php echo $leads->getIdUser() ?></td>
    </tr>
    <tr>
      <th>Name:</th>
      <td><?php echo $leads->getName() ?></td>
    </tr>
    <tr>
      <th>Date:</th>
      <td><?php echo $leads->getDate() ?></td>
    </tr>
</table>

Something like:

<table>
  <tbody>
    <tr>
      <th><?php $leads['id']->renderLabel() ?</th>
      <td><?php echo $leads->getId() ?></td>
    </tr>
    <tr>
      <th><?php $leads['id_user']->renderLabel() ?</th>
      <td><?php echo $leads->getIdUser() ?></td>
    </tr>
    <tr>
      <th><?php $leads['name']->renderLabel() ?</th>
      <td><?php echo $leads->getName() ?></td>
    </tr>
    <tr>
      <th><?php $leads['date']->renderLabel() ?</th>
      <td><?php echo $leads->getDate() ?></td>
    </tr>
</table>

Is it possible?
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to