Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/05/2008, 09:19
Avatar de shakaran
shakaran
 
Fecha de Ingreso: agosto-2005
Ubicación: España - Ciudad Real
Mensajes: 374
Antigüedad: 18 años, 9 meses
Puntos: 7
Respuesta: Fucionar códigos php modular

Para muchas opciones es mejor utilizar switch

Código PHP:
<?
switch($_GET['page'])
{
    case 
home:  include('pages/home/home.php'); break;
    case 
contacto:  include('pages/contacto/contacto.php'); break;
    default: include(
'pages/home/home.php'); break;
}
?>
__________________
Quijost Backend Engineer - www.quijost.com - Hosting rápido, eficiente y profesional
Blog: www.shakaran.net