Foros del Web » Programando para Internet » PHP » Zend »

Zend framework Formularios

Estas en el tema de Zend framework Formularios en el foro de Zend en Foros del Web. SALUDOS A TODOS: Tengo un formulario de herramientas y estoy llamando un id de otra tabla me muestra el id en un campo ejemplo idherram ...
  #1 (permalink)  
Antiguo 07/10/2011, 19:51
Avatar de vanegasjd  
Fecha de Ingreso: octubre-2011
Ubicación: Armenia, Quindio
Mensajes: 20
Antigüedad: 12 años, 6 meses
Puntos: 0
Zend framework Formularios

SALUDOS A TODOS:

Tengo un formulario de herramientas y estoy llamando un id de otra tabla
me muestra el id en un campo ejemplo


idherram serial nombre cantidad estado almacen bodega
1 123 alicate 22 1 1 1

quiero que me salga el nombre en vez del id ejemplo


oreden serial nombre cantidad estado almacen bodega
1 123 alicate 22 BUENO PRINCIPAL LALA
  #2 (permalink)  
Antiguo 07/10/2011, 20:22
Avatar de masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Zend framework Formularios

Que tal vanegasjd,

Postea el código del Form.

Saludos
__________________
http://es.phptherightway.com/
thats us riders :)
  #3 (permalink)  
Antiguo 08/10/2011, 07:21
Avatar de vanegasjd  
Fecha de Ingreso: octubre-2011
Ubicación: Armenia, Quindio
Mensajes: 20
Antigüedad: 12 años, 6 meses
Puntos: 0
Respuesta: Zend framework Formularios

<?php
header("Pragma: public");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: pre-check=0, post-check=0, max-age=0");
header("Pragma: no-cache");
header("Expires: 0");
header("Content-Transfer-Encoding: none");
header("Content-Type: application/vnd.ms-excel;");
header("Content-type: application/x-msexcel");
header("Content-Disposition: attachment; filename=report2_opendebitsummary".date('Ymd').".x ls");


?>
<html>
<body>
<h1>Reporte de Inventario de las Herramientas SAGAS</h1>
<table border="1">
<tr >
<td >orden Lista</td>
<td >Serial</td>
<td >Nombre</td>
<td >Cantidad</td>
<td >Descripcion</td>
<td >Fecha Ingreso</td>
<td >Estado</td>
<td >Almacen</td>
<td >Bodega</td>

</tr>
<?php foreach($this->herramientas as $order):?>
<tr>
<td ><?php echo $this->escape($order -> idherramientas);?></td>
<td ><?php echo $this->escape($order -> serial);?></td>
<td ><?php echo $this->escape($order -> nombre);?></td>
<td ><?php echo $this->escape($order -> cantidad);?></td>
<td ><?php echo $this->escape($order -> descripcion);?></td>
<td ><?php echo $this->escape($order -> fechaIngreso);?></td>
<td ><?php echo $this->escape($order -> idestados);?></td>
<td ><?php echo $this->escape($order -> idalmacenes);?></td>
<td ><?php echo $this->escape($order -> idbodegas);?></td>

</tr>
<?php endforeach;?>
</table>
</body>
</html>


ahi esta ojala me pueda ayudar gracias es una consulta pero no se donde hacerla ¬¬
  #4 (permalink)  
Antiguo 08/10/2011, 07:59
Avatar de masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Zend framework Formularios

  1. Los headers deberias setearlos al response object
  2. Que tipo de objeto es $order ? si es un Zend_Db_Table_Row, deberias configurar las relaciones.
  3. El foro adecuado es: Frameworks y PHP orientado a objetos

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)

Etiquetas: framework, tabla, formulario
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:45.