ok, my form is build (not pretty), and in the interests of moving
development forward, I've started working on the authenticating the
values entered in the form. Only I can't get that far because
submitting the form (with values or completely blank) results in the
following error:
Fatal error: Cannot unset string offsets in
/Users/Steven/Sites/wa3gukin.com/library/Zend/Form/Element.php on line 1999
I found that particular line, and it says:
if (isset($validator['options']['messages'])) {
$messages = $validator['options']['messages'];
(1999) unset($validator['options']['messages']);
}
Echoing $messages shows that it contains only "/".
What could the problem be?
Steven Szymczak wrote:
I'm in the process of [attempting] to create a simple login form, using
Zend_Form for the very first time. So far I'm failing, even after
reading the docs.
The part that's really getting me are decorators. I know what they're
supposed to do, I just can't figure out how to use them :o All that
this form contains are two text inputs: username and password. I want
the resulting form to look like:
Username: <username_input>
Password: <password_input>
<submit>
However, I can't figure out how to alter the decorators in order to
accomplish this, short of writing my own decorator classes; and I'm sure
there must be an easier way.
Sorry for my extreme newbiness...