I also then tried to store the request data in the User object:
$us = $this->context->getUser();
$us->setAttribute('commentRequestData', $this->getContext()-
>getRequest());
But the same exception occurs.
(By the way, the reason why I would like to store the Request data is
to use the Post/Redirect/Get pattern when submitting a form)
On 22 Feb 2009, at 21:06, Michal Charemza wrote:
> I'm kinda guessing here, but to store the validation report in the
> User object I tried:
>
> $us = $this->context->getUser();
> $us->setAttribute('commentValidation', $this->getContainer()-
> >getValidationManager()->getReport());
>
> But an exception is thrown:
>
> PDOException
> You cannot serialize or unserialize PDO instances
>
>
> On 21 Feb 2009, at 15:18, Michal Charemza wrote:
>
>> Hi,
>>
>> I would like to be able for the FPF to fill forms with values/
>> errors that have been stored in the User object (and so persists
>> between requests). I'm not sure
>>
>> - What data must be stored in the User object (well, the submitted
>> data and any errors, but I'm not sure exactly what the best way of
>> doing this)
>>
>> - How to then get the FPF to use this data in the view that
>> requires it.
>>
>> Any suggestions?
>>
>> Michal.
>
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users