--
Hector
On Thu, Oct 22, 2009 at 11:21 AM, Andre Fernandes <fernandes.andre@gmail.com> wrote:
Hi,
I am trying to set the page encoding to UTF-8 using the following line at application.ini:
resources.view.encoding = "UTF-8"
,my Bootstrap.php is the following:
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
public function _initAutoload()
{
$autoloader = new Zend_Application_Module_Autoloader(
array(
'namespace' => '',
'basePath' => APPLICATION_PATH
)
);
return $autoloader;
}
public function _initLayouts()
{
Zend_Layout::startMvc();
$this->getPluginResource('frontController')
->getFrontController()
->registerPlugin(new Plugin_ModuleLayout());
}
protected function _initDoctype()
{
$this->bootstrap('view');
$view = $this->getResource('view');
$view->doctype('XHTML1_STRICT');
}
}
And my layout.phtml is the following:
<?php echo $this->docType(); ?>
<html>
<head>
<?php echo $this->headMeta(); ?>
<?php echo $this->headTitle(); ?>
<?php echo $this->headLink(); ?>
<?php echo $this->headStyle(); ?>
<?php echo $this->headScript(); ?>
<?php echo $this->headLink()->appendStylesheet('/css/global.css') ?>
</head>
<body>
<?php echo $this->layout()->content ?>
</body>
</html>
But the encoding is not being setted at the HTML page generated. I guess there´s something I am missing that is needed to use the encoding setted at application.ini, but I can not find out what.
Any help would be great.
Thanks in advance,
--
André de Camargo Fernandes
没有评论:
发表评论