I would think that maybe initialize is too early!
Have you tried to move it to the startup, which is invoked after
beforeFilter()?
I do all my component processing in the startup, only saving settings
in the initialize method.
Enjoy,
   John

On Jun 17, 1:07 pm, Ernesto <[email protected]> wrote:
> Hello.
>
> i just wrote a simple component that keeps track of latest user's
> sorts in every index view of every controller in my app
> for example if an user sorts Orders by date_created (default is code)
> the component will write in session
> - the page the user was viewing
> - the sort field
> - the sort order
>
> if the user goes back to to orders/index he should find the same page
> as the last visit.
>
> problem: i cannot find a working way to re-load the saved parameters
>
> $controller->params["named"] = $this->Session->read("blahblahblah")
> <---- doesn't work
> $controller->paginate = $this->Session->read("foo") <-- doesn't work
> either
>
> i'm working in Component's initialize.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to