Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/10/2013, 10:22
Montes28
 
Fecha de Ingreso: septiembre-2010
Mensajes: 1.853
Antigüedad: 13 años, 7 meses
Puntos: 6
Es correcto combinar etiquetas php <?php ?> y {{ }}

hola amigos espero me puedan ayudar,

quiero saber si combinar etiquetas php <?php ?> y {{ }} es correcto combinarlas?

Código PHP:
Ver original
  1. <?php $total=0; ?>
  2.  
  3. <table class="table table-striped table-bordered" border="1">
  4.     <thead>
  5.       <tr>
  6.         <th>Volcán</th>
  7.         <th># Repetidoras</th>
  8.       </tr>
  9.     </thead>
  10.     <tbody>
  11.    @foreach ($repeaters as $repeater)
  12.    <tr>
  13.   <td>{{{ $repeater->nombre}}}</td>
  14.   <td>{{{ $repeater->repeaters}}}</td>
  15.   <?php $total = $total + $repeater->repeaters ?>
  16. </tr>
  17. @endforeach
  18. <tr>
  19. <td><strong>Total</strong></td>
  20. <td><strong>{{ $total }}</strong></td>
  21. </tr>  
  22. </table>