Ver Mensaje Individual
  #7 (permalink)  
Antiguo 10/02/2011, 15:19
Avatar de Basteri
Basteri
 
Fecha de Ingreso: noviembre-2008
Mensajes: 30
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Asiganacion de metatags para web modular

Peteketrueke

la defino en el archivo index.php

$titulo['home'] = "Mi titulo";

y en el archivo layout_simple.php la invoco asi:

Código HTML:
<html>
<head>
	<title><?php echo $titulo; ?></title>
	<basefont color="#FFFFFF" face="Verdana" />
</head>
<body bgcolor="#9999cc">
<?php include('includes/header.html'); ?>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
	<tr>
		<td width="140" bgcolor="#5b69a6">&nbsp;</td>
		<td>
<?php
	if (file_exists( $path_modulo )) include( $path_modulo );
	else die('Error al cargar el módulo <b>'.$modulo.'</b>. No existe el archivo <b>'.$conf[$modulo]['archivo'].'</b>');
?>
		</td>
	</tr>
</table>
<?php include('includes/footer.html'); ?>
</body>
</html>