[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP Notice: Array to string conversion in /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Helper/HtmlElement.php on line 105
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP Stack trace:
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 1. {main}() /var/www/nrka2/public/index.php:0
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 2. require() /var/www/nrka2/public/index.php:2
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 3. Zend_Application->run() /var/www/nrka2/application/application.php:29
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 4. Bootstrap->run() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Application.php:366
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 5. Zend_Application_Bootstrap_Bootstrap->run() /var/www/nrka2/application/bootstrap/Bootstrap.php:183
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 6. Zend_Controller_Front->dispatch() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Application/Bootstrap/Bootstrap.php:97
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 7. Zend_Controller_Dispatcher_Standard->dispatch() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Front.php:954
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 8. Zend_Controller_Action->dispatch() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Dispatcher/Standard.php:295
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 9. Zend_Controller_Action_HelperBroker->notifyPostDispatch() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Action.php:523
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 10. Zend_Controller_Action_Helper_ViewRenderer->postDispatch() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Action/HelperBroker.php:277
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 11. Zend_Controller_Action_Helper_ViewRenderer->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Action/Helper/ViewRenderer.php:957
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 12. Zend_Controller_Action_Helper_ViewRenderer->renderScript() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Action/Helper/ViewRenderer.php:918
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 13. Zend_View_Abstract->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Action/Helper/ViewRenderer.php:897
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 14. Zend_View->_run() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Abstract.php:880
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 15. include() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View.php:108
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 16. Zend_Form->__toString() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form.php:0
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 17. Zend_Form->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form.php:2903
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 18. Zend_Form_Decorator_FormElements->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form.php:2887
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 19. Zend_Form_Element->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form/Decorator/FormElements.php:101
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 20. Zend_Form_Decorator_ViewHelper->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form/Element.php:2020
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 21. Zend_View->formText() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form/Decorator/ViewHelper.php:246
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 22. Zend_View_Abstract->__call() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Abstract.php:0
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 23. call_user_func_array() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Abstract.php:342
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 24. Zend_View_Helper_FormText->formText() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Abstract.php:0
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 25. Zend_View_Helper_HtmlElement->_htmlAttribs() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Helper/FormText.php:79
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 26. implode() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Helper/HtmlElement.php:105
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP Notice: Array to string conversion in /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Helper/HtmlElement.php on line 105
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP Stack trace:
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 1. {main}() /var/www/nrka2/public/index.php:0
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 2. require() /var/www/nrka2/public/index.php:2
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 3. Zend_Application->run() /var/www/nrka2/application/application.php:29
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 4. Bootstrap->run() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Application.php:366
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 5. Zend_Application_Bootstrap_Bootstrap->run() /var/www/nrka2/application/bootstrap/Bootstrap.php:183
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 6. Zend_Controller_Front->dispatch() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Application/Bootstrap/Bootstrap.php:97
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 7. Zend_Controller_Dispatcher_Standard->dispatch() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Front.php:954
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 8. Zend_Controller_Action->dispatch() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Dispatcher/Standard.php:295
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 9. Zend_Controller_Action_HelperBroker->notifyPostDispatch() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Action.php:523
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 10. Zend_Controller_Action_Helper_ViewRenderer->postDispatch() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Action/HelperBroker.php:277
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 11. Zend_Controller_Action_Helper_ViewRenderer->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Action/Helper/ViewRenderer.php:957
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 12. Zend_Controller_Action_Helper_ViewRenderer->renderScript() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Action/Helper/ViewRenderer.php:918
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 13. Zend_View_Abstract->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Controller/Action/Helper/ViewRenderer.php:897
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 14. Zend_View->_run() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Abstract.php:880
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 15. include() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View.php:108
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 16. Zend_Form->__toString() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form.php:0
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 17. Zend_Form->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form.php:2903
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 18. Zend_Form_Decorator_FormElements->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form.php:2887
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 19. Zend_Form_Element->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form/Decorator/FormElements.php:101
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 20. Zend_Form_Decorator_ViewHelper->render() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form/Element.php:2020
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 21. Zend_View->formText() /var/www/Zend/ZendFramework-1.10.7/library/Zend/Form/Decorator/ViewHelper.php:246
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 22. Zend_View_Abstract->__call() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Abstract.php:0
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 23. call_user_func_array() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Abstract.php:342
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 24. Zend_View_Helper_FormText->formText() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Abstract.php:0
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 25. Zend_View_Helper_HtmlElement->_htmlAttribs() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Helper/FormText.php:79
[Sun Aug 01 10:35:19 2010] [error] [client 127.0.0.1] PHP 26. implode() /var/www/Zend/ZendFramework-1.10.7/library/Zend/View/Helper/HtmlElement.php:105
This is the code in my form:
<?php
class EventManager_Form_User_Base extends SF_Form_Abstract{
public function init(){
$this->addElementPrefixPath(
'EventManager_Validate',
APPLICATION_PATH . '/modules/eventManager/models/validate',
'validate'
);
$this->addPrefixPath(
'EventManager_Form_Element',
APPLICATION_PATH.'/modules/eventManager/forms/element',
'element'
);
$this->getView()->addScriptPath(APPLICATION_PATH.'/modules/eventManager/forms/element');
$this->addElement('select','usr_prefix',array(
'required' =>true,
'label' =>'Title',
'multiOptions' => array('Dhr'=>'Dhr', 'Mevrouw'=>'Mevrouw')
));
/*
$this->addElement('text','usr_firstname', array(
'filters' => array('StringTrim'),
'valdators' => array(
'Alpha',
array('StringLength',true,array(3,128))
),
'required' => true,
'label' => 'Firstname',
));*/
$this->addElement('text','usr_surname', array(
'filters' => array('StringTrim'),
'valdators' => array(
'Alpha',
array('StringLength',true,array(3,128))
),
'required' => true,
'label' => 'lastname',
));
$this->addElement('text','usr_email', array(
'filters' => array('StringTrim', 'StringToLower'),
'validators' => array(
array('StringLength',true,array(3,128)),
array('EmailAddress'),
array('UniqueEmail', false, array(new EventManager_Model_User())),
),
'required' => true,
'label' => 'email',
));
$this->addElement('password','usr_password',array(
'filters' => array('StringTrim'),
'validators' => array(
array('StringLength',true, array(6,128))
),
'required' =>true,
'label' =>'Password'
));
$this->addElement('password','passwdVerify',array(
'filters' => array('StringTrim'),
'validators' => array(
'PasswordVerification'
),
'required' =>true,
'label' =>'Confirm password'
));
$this->addElement('submit','submit', array(
'required' =>false,
'ignore' =>true,
'decorators'=> array('ViewHelper',array('HtmlTag',array('tag' => 'dd','id' =>'form-submit')))
));
$this->addElement('hidden','usr_id', array(
'filters' => array('StringTrim'),
'required' => true,
'decorators'=> array('ViewHelper',array('HtmlTag',array('tag' => 'dd','id' =>'form-submit')))
));
}
}
class EventManager_Form_User_Register extends EventManager_Form_User_Base{
public function init(){
parent::init();
$this->removeElement('usr_id');
$this->getElement('submit')->setLabel('Register');
$this->removeElement('role');
}
}
Any idea's what goes wrong?
没有评论:
发表评论