On 1 Apr., 12:22, "Ian P. Christian" <[EMAIL PROTECTED]> wrote:
> Kasper G wrote:
> > On 31 Mar., 22:09, "Mohammad Ali Safari"<[EMAIL PROTECTED]>
> > wrote:
>
> >> You probably want to use flash 
> >> instead:http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Laye...
>
> > Using flash is essentially storing the value in the session with the
> > added convenience of automated cleanup. It still seems like a hack to
> > me. We do not have to use the session to pass values to a component -
> > why should this be required when sending a mail?
>
> You can use the request's paramater holder with your own namespace....

Using the request parameter works and seems like a good solution, Ian.

Wrapping and unwrapping the values in the parameter holder gets a bit
cumbersome so I added some code in my observers and mail actions to
simplify this.

> Have you looked at sf1.1 btw? the dispatcher could do what you want
> pretty easily :)

Thanks for the heads up. Unfortunately this is a symfony 1.0 only
project so it's not really an option now. I went with the PEAR
Event_Dispatcher as this works as well.

Kasper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to