crear web modular es facil y sencillo
Código:
<?php
switch ($seccion) {
// Si el valor es 'portada'
case portada:
include("home.php");
break;
// Si el valor es 'oldnews'
case oldnews:
include("oldnews.php");
break;
case Enlazame:
include("enlazame.php");
break;
case Afiliarte:
include("afiliarte.php");
break;
case Copyright:
include("copyright.php");
break;
case registro:
include("registro.php");
break;
// lo pag k sera llamada enlugar del index, la pag k sera la principal
default:
include("home.php");
}
//
//
?>
el archibo se llamara index.php
esto ara k tu web sevea asi:
Código:
http://tuweb.com/index.php?seccion=portada
en esta linea puedes cambiarlo a lo k tu kieras x ejemplo "id" "ver" "accion" etc...
Código:
switch ($seccion) {
y asi podras tener una web modular sin saber mucho de programacion
para agregar mas enlases solo se nesesita agregar esto
Código:
case loksea:
include("la ruta de tu archibo html o php");
break;
espero k les funcione
espero k ayan entendido!