Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/07/2018, 18:48
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 16 años, 1 mes
Puntos: 2237
Respuesta: Mostrar valor seleccionado en select de Bootstrap

Si estás usando Smarty, no deberías crear el HTML del select, sino establecer las opciones:

Código PHP:
Ver original
  1. <?php
  2. $smarty->assign('myOptions', array(
  3.                                 1800 => 'Joe Schmoe',
  4.                                 9904 => 'Jack Smith',
  5.                                 2003 => 'Charlie Brown')
  6.                                 );
  7. $smarty->assign('mySelect', 9904);
  8. ?>

Información tomada de: https://www.smarty.net/docsv2/en/lan...ml.options.tpl
__________________
- León, Guanajuato
- GV-Foto