View Single Post
  #1 (permalink)  
Old 03-28-2008, 04:26 PM
notrub225 notrub225 is offline
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default How do I set the Doctype in the Bootstrap?

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?
Reply With Quote