In the docs:

http://framework.zend.com/manual/en/zend.layout.quickstart.html

it shows something like this:

<?php echo $this->docType( 'XHTML1_STRICT' ); ?>

But when I try to use it in my layout I get errors:

Fatal error: Uncaught exception 'Zend_View_Exception' with message
'helper 'DocType' not found in path' in
/usr/local/apache2/ZendFramework-1.5.2/library/Zend/View/Abstract.php:1004
Stack trace: #0
/usr/local/apache2/ZendFramework-1.5.2/library/Zend/View/Abstract.php(497):
Zend_View_Abstract->_loadClass('helper', 'DocType') #1
/usr/local/apache2/ZendFramework-1.5.2/library/Zend/View/Abstract.php(294):
Zend_View_Abstract->getHelper('docType') #2 [internal function]:
Zend_View_Abstract->__call('docType', Array) #3
/usr/local/apache2/htdocs/rated/application/views/layouts/application.phtml(1):
Zend_View->docType('XHTML1_STRICT') #4
/usr/local/apache2/ZendFramework-1.5.2/library/Zend/View.php(46):
include('/usr/local/apac...') #5
/usr/local/apache2/ZendFramework-1.5.2/library/Zend/View/Abstract.php(769):
Zend_View->_run('/usr/local/apac...') #6
/usr/local/apache2/ZendFramework-1.5.2/library/Zend/Layout.php(729):
Zend_View_Abstract->render('application.pht...') #7
/usr/local/apache2/ZendFramework-1.5.2/library/Zend/Layout/Cont in
/usr/local/apache2/ZendFramework-1.5.2/library/Zend/View/Abstract.php
on line 1004

In my boostrap I have this:

require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();

So shouldn't that give me proper file scope for all of ZF, including
this helper it can't seem to find?


Thanks,


-- 
Greg Donald
http://destiney.com/

Reply via email to