Zend framwork, layout

I have set up the Zend Framework and had it serving up the default page. Now it was time to set up a layout.

zf enable layout

Then I put in the HTML for application/layout/scripts/layout.phtml

<!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">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Montes Negros</title>
<?php echo $this->headLink()->appendStylesheet('/css/main.css') ?>

<div id="background_layer"><img src="/images/background.jpg" alt="" width="100%" /></div>
<div id="container">
<div id="allcontent">
<div id="header">
<div id="header_text">
<h1>Casa Montes Negros</h1>
<h2>Rural Organic Rental Cottage</h2>

<div id="left_menu">
<p>Menu </p>

<div id="main"><?php echo $this->layout()->content ?></div>

<div id="footer">&copy;Montes Negros 2012</div>

I updated application/views/scripts/index/index.phtml with some default text. This gave me:

Comments are closed.