Tema: Varibales
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/07/2010, 16:20
josico
 
Fecha de Ingreso: julio-2009
Mensajes: 172
Antigüedad: 14 años, 10 meses
Puntos: 3
Varibales

No se muy bien como orientar el nombre del titulo y la consulta.

Yo estoy creando mi sitio con un tema CSS y PHP.

He creado un archivo llamado núcleo.php que llama a otros archivos necesarios como scripts, etc.

Ahora he creado index.php y lo primero que e puesto a sido la llamada con require al núcleo.

Ahora bien, en núcleo.php he creado la siguiente variable.

$DIR_TEMAS = 'http://127.0.0.1/temas/';

Con esto pretendo que en index cuando tenga que llamar a los styles del tema, llamarlo con la variable. Pero me estoy liando y no se que habre hecho mal.

Os dejo parte del código.

<?php require("nucleo.php");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr">
<head profile="http://gmpg.org/xfn/11">
<title>Internet Business</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="<?$DIR_TEMAS;?>inicio/styles/layout.css" type="text/css" />
<script type="text/javascript" src="<?$DIR_TEMAS;?>inicio/scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="<?$DIR_TEMAS;?>inicio/scripts/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="<?$DIR_TEMAS;?>inicio/scripts/jquery.hoverIntent.js"></script>
<script type="text/javascript" src="<?$DIR_TEMAS;?>inicio/scripts/jquery.hslides.1.0.js"></script>
<script type="text/javascript" src="<?$DIR_TEMAS;?>inicio/scripts/jquery.hslides.setup.js"></script>
</head>