Thanks for your reply,
my Quick&Dirty Version works great, at the moment i use php session-funcs to
transfer the data, because my knowledge about Zend_Session_Namespace is not
that great!
I'll try it out this day!

Kind regards,
Dennis Winter


Mathew Byrne-2 wrote:
> 
> Yes you'll have to persist the data between requests yourself at this  
> stage. And Zend_Session_Namespace would definitely be a good solution.  
> You can store the data easily enough:
> 
> if ($form->isValid ($data)) {
>       $session = new Zend_Session_Namespace ('CommentForm');
>       $session->data = $form->getValues ();
>       ...
> 
> Since you've presumably validated the form at this stage you don't  
> neccessarily need to recreate the form on the request after the OpenId  
> authentication:
> 
> ...
> $session = new Zend_Session_Namespace ('CommentForm');
> $data    = $session->data;
> 
> There is an empty function Zend_Form::persistData which I assume is  
> intended to do exactly this, but I'm not sure when that's planned to  
> be finished or even if it will be implemented.
> 
> --
> Mathew Byrne
> http://www.matbyrne.com/
> 
> 
> On Apr 19, 2008, at 12:48 PM, dennis.winter wrote:
> 
>>
>> Hello,
>> my problem is, that i'm trying to implement a kind of comment box,  
>> which
>> should be openid-enabled!
>>
>> I'm creating the form with zend_form, at post the script checks,  
>> whether an
>> open-id enabled url is posted or not, if so it sends a request to the
>> openid-server,
>> these send a response to my localhost, so..here's the problem:
>> in this moment i'm having the required email-address, the fullname  
>> and the
>> url, but the comment is, of course gone. I'm thinking of an  
>> implentation of
>> zend_session,
>> but, it is useful? or are there any other possibilities? in facts,
>> zend_session needs to save an object -> form, so that it is ready,  
>> if it's
>> needed in the next parts!
>> Because of the Zend_Form implentation i'm validating the forms after
>> registration, and move the data out of the session-object right to the
>> form-object! then validation,
>> send to model and save to the database!
>> -- 
>> View this message in context:
>> http://www.nabble.com/problems-with-zend_form%2C-zend_openid-and-zend_session-tp16768268p16768268.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problems-with-zend_form%2C-zend_openid-and-zend_session-tp16768268p16792257.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to