Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/05/2011, 05:29
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Como crear un header, y footer en ZF

No se que tutorial viste, pero lo que necesitas esta en la documentación, primero tenes que habilitar el layout, la forma sencilla de hacerlo es por medio de la consola

zf enable layout

y luego hacer el slice del html, separando las secciones, tu layout quedaría como en la doc, algo así:


Código HTML:
Ver original
  1. <!DOCTYPE html
  2.    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.     <?php echo $this->headTitle() ?>
  6.     <?php echo $this->headScript() ?>
  7.     <?php echo $this->headStyle() ?>
  8. </head>
  9.     <?php echo $this->render('header.phtml') ?>
  10.  
  11.     <div id="nav"><?php echo $this->placeholder('nav') ?></div>
  12.  
  13.     <div id="content"><?php echo $this->layout()->content ?></div>
  14.  
  15.     <?php echo $this->render('footer.phtml') ?>
  16. </body>
  17. </html>


Que parte es la que no esta clara ?
__________________
http://es.phptherightway.com/
thats us riders :)