http://framework.zend.com/manual/en/requirements.html#requirements.versi
on
It looks like 5.2.3 is preferred, but 5.1.4+ should work... Perhaps this
feature is only available for 5.2.3+ users?
--
Eric Marden
Sr. PHP Developer
Bonnier Corporation
www.bonniercorp.com
________________________________
From: Karl Katzke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 5:35 PM
To: [email protected]
Subject: [fw-general] Autoload issue with PHP 5.1.6
Is PHP 5.1.6 still supported with ZF, or not? If it is, I seem
to be having an issue with the autoloader.
On my local workstation, which is running 5.2.3, I can autoload
classes in the Validator folder just fine. When I try with my server
running PHP 5.1.6, I'll get a stack trace akin to this:
2008-03-05T16:24:29-06:00 DEBUG (7): Plugin by name Notempty was
not found in the registry.
#0
/var/www/mansites/corpworlds.com/lib/Zend/Form/Element.php(909):
Zend_Loader_PluginLoader->load('notempty')
#1
/var/www/mansites/corpworlds.com/lib/Corpworlds/Form/Quickregister.php(3
1): Zend_Form_Element->addValidator('notempty', true)
#2
/var/www/mansites/corpworlds.com/app/controllers/UserController.php(18):
Corpworlds_Form_Quickregister->__construct()
#3
/var/www/mansites/corpworlds.com/lib/Zend/Controller/Action.php(502):
UserController->quickregisterAction()
#4
/var/www/mansites/corpworlds.com/lib/Zend/Controller/Dispatcher/Standard
.php(293): Zend_Controller_Action->dispatch('quickregisterAc...')
#5
/var/www/mansites/corpworlds.com/lib/Zend/Controller/Front.php(914):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Req
uest_Http), Object(Zend_Controller_Response_Http))
#6
/var/www/mansites/corpworlds.com/lib/Zend/Controller/Front.php(223):
Zend_Controller_Front->dispatch()
#7 /var/www/mansites/corpworlds.com/html/index.php(32):
Zend_Controller_Front::run('/var/www/mansit...')
#8 {main}
... but if I add a line like this in the front controller, it
picks up the NotEmpty validator just fine:
$ne = new Zend_Validate_NotEmpty();
... Like I said, not sure if this is a bug or something that I
should know how to work around. Still just using forms and validators
for the first time.
-Karl