helper 'DocType' not found

View: New views
3 Messages — Rating Filter:   Alert me  

helper 'DocType' not found

by Greg Donald-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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/

Re: helper 'DocType' not found

by listmail-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 28 May 2008 11:19:35 -0500
"Greg Donald" <gdonald@...> wrote:

> In the docs:
>
> http://framework.zend.com/manual/en/zend.layout.quickstart.html
>
> it shows something like this:
>
> <?php echo $this->docType( 'XHTML1_STRICT' ); ?>
>



You need $this->doctype('XHTML1_STRICT'), method name all
lowercase, despite what it says in the docs...


--
   
Greg Maruszeczka

http://websagesolutions.com
skype: websage.ca
googletalk: gmarus

"Those who are possessed by nothing possess everything."
-- Morihei Ueshiba

Re: helper 'DocType' not found

by Greg Donald-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 5/28/08, Greg Maruszeczka <listmail@...> wrote:
> You need $this->doctype('XHTML1_STRICT'), method name all
>  lowercase, despite what it says in the docs...

I see.  Thanks.


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