View Single Post
  #1 (permalink)  
Old 04-07-2008, 02:38 AM
lucasm's Avatar
lucasm lucasm is offline
Junior Member
 
Join Date: Mar 2008
Location: Įguas Claras-DF, Brazil
Posts: 17
Question Wrong html from a Zend_Layout

folks,

After a lot of reading about Zend_Layout, I must miss something because I got a wrong output.

The source of layout's file is:
PHP Code:
<?php $this->doctype('HTML4_STRICT'); ?>
<html> <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <?php
    
echo $this->headTitle($this->escape($this->title));
    echo 
$this->headStyle($this->escape($this->escape(($this->baseUrl()."/css/site.css")));
     
?>
</head> <body>
<div id="content">
    <h1><?php echo $this->escape($this->title); ?></h1>
    <?php echo $this->layout()->content?>
</div> </body> </html>
The output is:
HTML Code:
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Contas</title><style type="text/css" media="screen">
<!--
/demos/conta/public/css/site.css
-->
</style></head>
<body> ....
I get some problems in it:
  • No document type declaration
  • Charset configuration is not working. My charset special characters are truncating.
  • Css file load is in wrong format.

regards,
__________________
Lucas Mauricio C. e Martins
CR Vasco da Gama, my biggest passion!

Ajude a Combater o Spam! - Help fighting spam!
Reply With Quote