The problem is that it sets the expiration hops to one. And it does that
when it is rendering the form. So, you have to edit that value. What I
did, is to put the session namespace of the hash element in the
registry. And in my bootstrap, I am adjusting the value to 20.
But this should be editable in Zend_Form_Element_Hash itself. I was
already committing an issue for this on JIRA.
Regards,
Pieter Kokx
MaakSite.net
PHP Developer
ZFRocks schreef:
> Hi zfers,
>
> I have a form with an hash element on a page that contains various ajax
> calls.
> When I submit the form I get the 'No token was provided to match against'
> error message.
>
> the hash element code is as follow:
> ->addElement('hash', 'key', array('salt' => 'pepper''));
>
> Is there a way to use the hash element with ajax calls in the background?
>
> thanks a lot!
>
没有评论:
发表评论