I'm working through the Zend Framework 1.8 Web Development book, and I'm at the part that describes how you can edit the bootstrap.php to initialize a doctype for you. However, when I insert the function, I get a server error when I navigate to my project.
The application only breaks after I add the following code to my Bootstrap.php
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initViewSettings()
{
$this->bootstrap('view');
$view = $this->getResource('view');
$view->doctype('XHTML1_STRICT');
}
}