2008年8月28日星期四

[fw-mvc] Problem with DocType plugin not found?

Hi all,

I've got a problem that has cost me a good part of my day.

In my bootstrap-method setupView I've this piece of code:

$view = new Zend_View();
$view->setEncoding('utf-8');
$view->docType('XHTML1_STRICT');

On my local machine, that works perfectly.

On the testing environment, I get this exception thrown:

Plugin by name DocType was not found in the registry.
#0 /home/volkskra/www/lib_vk/php/Zend_1.6_RC2/Zend/View/Abstract.php(1114):
Zend_Loader_PluginLoader->load('DocType')
#1 /home/volkskra/www/lib_vk/php/Zend_1.6_RC2/Zend/View/Abstract.php(545):
Zend_View_Abstract->_getPlugin('helper', 'docType')
#2 /home/volkskra/www/lib_vk/php/Zend_1.6_RC2/Zend/View/Abstract.php(312):
Zend_View_Abstract->getHelper('docType')
#3 [internal function]: Zend_View_Abstract->__call('docType', Array)
#4 /home/volkskra/www/studeerwijzer/application/Bootstrap.php(90):
Zend_View->docType('XHTML1_STRICT')
#5 /home/volkskra/www/studeerwijzer/application/Bootstrap.php(30):
Bootstrap::setupView()
#6 /home/volkskra/www/studeerwijzer/application/Bootstrap.php(13):
Bootstrap::prepare()
#7 /home/volkskra/www/studeerwijzer/public/index.php(10): Bootstrap::run()
#8 {main}

I use the same versions on my local development machine and the testing
environment of the hosting company: 1.6 RC 2, as confirmed by a call to
Zend_Version::VERSION.

The only include-path I've set is to my own application, plus the ZF
Library.

I've made sure the entire ZF Library is available on that location; I see
the file Doctype.php sitting there in view/helper.
I'm also sure the library is found; other ZF-classes and functions perform
as expected.

The only noticeable difference is the PHP version and OS: locally I've got
5.2.3 on Windows XP, on my testing machine I've got some Linux distro with
PHP 5.1.6

Thanks for any help!

GJ

--
View this message in context: http://www.nabble.com/Problem-with-DocType-plugin-not-found--tp19202496p19202496.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: