I am trying to set the Doctype of my site in the bootstrapper:
PHP Code:
// Set the Doctype to XHTML 1.0 TRANSITIONAL for purposes of view helpers
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$viewRenderer->view->doctype('XHTML1_TRANSITIONAL');
However I get this error message:
PHP Code:
Fatal error: Call to a member function doctype() on a non-object in /srv/httpd/highlandgroupinc.com/html/els/certificates/index.php on line 33
I know this error means that I am not creating an instance of the viewRenderer properly or that I am applying the method function to the wrong type of object.
What is the correct way to set the doctype in the bootstrap file?