Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/03/2011, 10:07
RALlave
 
Fecha de Ingreso: noviembre-2008
Mensajes: 62
Antigüedad: 15 años, 5 meses
Puntos: 2
Respuesta: Consulta en dos tablas

Ok maestro, funciono, te agradezco, adicione los campos que se quiere utilizar,

Código PHP:
$select $this->select()
                ->
setIntegrityCheck(false)
                ->
from(array("p"=>"programa"),array("pro_id""pro_nombre""pro_hora""pro_sw"))
                ->
join(array("u"=>"usuario"),
                        
"u.usu_id = p.usu_id",array("usu_nombre""usu_apellido"));
        return 
$this->fetchAll($select); 
y en el view:

Código PHP:
<?php echo $lista->usu_apellido." ".$lista->usu_nombre ?>
Para el que le sirva....