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,