Edición de «Como ejecutar sentencia JOIN en un find() en KumbiaPHP Framework»
De KumbiaPHP Framework Wiki
Advertencia: no has iniciado sesión. Tu dirección IP se hará pública si haces cualquier edición. Si inicias sesión o creas una cuenta, tus ediciones se atribuirán a tu nombre de usuario, además de otros beneficios.
Puedes deshacer la edición. Antes de deshacer la edición, comprueba la siguiente comparación para verificar que realmente es lo que quieres hacer, y entonces guarda los cambios para así efectuar la reversión.
Revisión actual | Tu texto | ||
Línea 81: | Línea 81: | ||
<?php | <?php | ||
− | class UsuarioController extends | + | class UsuarioController extends ApplicationController{ |
public function index(){ | public function index(){ | ||
− | + | ||
− | + | $this->inner = $this->Usuario->getInnerJoin(); | |
− | + | $this->left = $this->Usuario->getleftJoin(); | |
− | + | $this->right = $this->Usuario->getrightJoin(); | |
} | } | ||
} | } | ||
Línea 106: | Línea 106: | ||
</tr> | </tr> | ||
<?php foreach($inner As $i): ?> | <?php foreach($inner As $i): ?> | ||
− | + | <?php echo tr_color('#ff0000', '#fff')?> | |
− | + | <td><?php echo $i->username ?></td> | |
− | + | <td><?php echo $i->nombres ?></td> | |
− | + | <td><?php echo $i->departamento ?></td> | |
− | + | </tr> | |
<?php endforeach; ?> | <?php endforeach; ?> | ||
</table> | </table> | ||
Línea 122: | Línea 122: | ||
</tr> | </tr> | ||
<?php foreach($left As $i): ?> | <?php foreach($left As $i): ?> | ||
− | + | <?php echo tr_color('#ff0000', '#fff')?> | |
− | + | <td><?php echo $i->username ?></td> | |
− | + | <td><?php echo $i->nombres ?></td> | |
− | + | <td><?php echo $i->departamento ?></td> | |
− | + | </tr> | |
<?php endforeach; ?> | <?php endforeach; ?> | ||
</table> | </table> | ||
Línea 138: | Línea 138: | ||
</tr> | </tr> | ||
<?php foreach($right As $i): ?> | <?php foreach($right As $i): ?> | ||
− | + | <?php echo tr_color('#ff0000', '#fff')?> | |
− | + | <td><?php echo $i->username ?></td> | |
− | + | <td><?php echo $i->nombres ?></td> | |
− | + | <td><?php echo $i->departamento ?></td> | |
− | + | </tr> | |
<?php endforeach; ?> | <?php endforeach; ?> | ||
</table> | </table> |