-- Neriodavid(Wei Dai) <[EMAIL PROTECTED]> wrote
(on Tuesday, 17 June 2008, 10:15 AM +0800):
> Sweet, thank you very much!
>
> I guess use the ViewScript decorator is much more comfortable in many case if
> you have a well designed form.
>
> By the way, did you try the CredentialTreatment('Password(?)')?
I have used that and md5(?) both to success.
> On Tue, Jun 17, 2008 at 1:49 AM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>
> wrote:
>
> -- Neriodavid(Wei Dai) <[EMAIL PROTECTED]> wrote
> (on Saturday, 14 June 2008, 04:05 PM +0800):
> > 1. About Zend_Form:
> > How to decorate a form to allow html/dom element in between form
> element?
> > I have a well designed form with many table cell and heading text in
> it. How
> > can I add xhtml/dom element with text node in the tags not wrap/prepend/
> append
> > tags to the Zend_Form_Element objects.
> > The only way I can think of is use "Description" decorator. But, I
> need use
> > "Description upon Description" and then set every "Description" with the
> value
> > of the desired text?
>
> I'd actually suggest using the ViewScript decorator with your form if
> you need to do this. There are examples in my tutorial:
>
> http://devzone.zend.com/article/3450-Decorators-with-Zend_Form
>
> This is the easiest and best way to do customized output for your forms.
>
> > 2. I add custom form decorator HtmlTag, when tags are br, hr ... empty
> tag, it
> > generate <br></br> and <hr></hr>.
> > This questions is actually a report of (Maybe a little bug?) problem. It
> is
> > that when you add the HtmlTag decorator with the "empty element tag",
> such as
> > "br" or "hr". ZF will use this tag wrap around the element with the
> "<br>
> " and
> > "</br>", not use "<br />".
>
> HtmlTag _is_ a little stupid in that regard; it assumes all tags used
> require an end tag. You _can_ specify that the tag should append or
> prepend the content, but even so, it still generates open and close
> tags. Feel free to file an issue report on this -- though I think this
> will be a moot issue if you use the ViewScript decorator as recommended
> above
>
> > 3.CredentialTreatment('Password(?)') doesn't work.
> > I am talking about use the Zend_Auth_Adapter. When I use the
> > "setCredentialTreatment" method with "Password(?)" against mysql 5, and
> in the
> > DB, the password column was encoded using the PASSWORD, not the OLD
> PASSWORD,
> > it fails to authenticate. However, When I use MD5, it works.
>
> That's not an issue with Zend_Auth, but with the database server.
>
> > P.S. I receive warnings from ZF mail list states that my message was
> bouced. I
> > have no idea why. Maybe because I use forwarded some message to the mail
> list?
>
> Those are from somebody on the list who has a malconfigured server.
> grrr....
>
> --
> Matthew Weier O'Phinney
> Software Architect | [EMAIL PROTECTED]
> Zend Framework | http://framework.zend.com/
>
>
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/