[symfony-users] Re: Retain internal value after forward()

2008-04-01 Thread Kasper G
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 flas

[symfony-users] Re: Retain internal value after forward()

2008-04-01 Thread Ian P. Christian
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 >

[symfony-users] Re: Retain internal value after forward()

2008-04-01 Thread Kasper G
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.

[symfony-users] Re: Retain internal value after forward()

2008-03-31 Thread Mohammad Ali Safari
Hi Kasper You probably want to use flash instead: http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Layer#Flash%20Attributes -Mohammad On Mon, Mar 31, 2008 at 2:04 PM, Kasper G <[EMAIL PROTECTED]> wrote: > > Thank you for your response, Olivier. Storing the value in the session >

[symfony-users] Re: Retain internal value after forward()

2008-03-31 Thread Kasper G
Thank you for your response, Olivier. Storing the value in the session (through getUser()) is indeed an option. However I do not consider it a very "clean" one. The information need only be accessible during the current request after the forward but not during subsequent requests. Storing it in t

[symfony-users] Re: Retain internal value after forward()

2008-03-31 Thread Olivier LOYNET
To retain values, you can do like the filters in Admin generator To set $this->getUser()->getAttributeHolder()->removeNamespace('frontend/test/filte rs'); $this->getUser()->getAttributeHolder()->add($filters, 'frontend/test/filters'); To get filters = $this->getUser()->getAttribu