Hey,

For my login form, I pass the form my user model (to be used by validators)
and in the forms init() I add the model to a private variable.

I notice when I try display the form I get the following error.
Warning: htmlspecialchars() expects parameter 1 to be string, object given
in /home/blah/library/Zend/View/Abstract.php

I tracked this problem back to my user model not having a __toString()
function. If I add a __toString() function that returns '' within my user
model this error goes away.

Does anyone have any ideas how to avoid this problem without having to
create the __toString() soley for this purpose?


-- 
View this message in context: 
http://www.nabble.com/Attaching-a-model-within-a-Zend_Form-instance-causes-an-error-on-display-tp20945740p20945740.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to