On 6/29/05, Greg McClure
<gmcclure-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Is it possible to pass vars from one controller to another during page
> rendering?
>
> For example, I have a navigation controller which is included in a
> template via a render_component call. The navigation controller
> decides which links belong to any given page, so navigation logic
> which is changeable can all be located in that controller. However,
> certain links, obviously, require certain vars at times, such as ids
> for various other controllers, in order to properly render an
> appropriate navigation url.
>
> These vars are usually passed to the controller responsible for
> rendering the page, not directly to the navigation controller. I
> *could* simply add needed parameters to the parameters hash in the
> render_component method, but not every page needs parameters passed to
> the navigation and there are other inconsistencies depending on which
> page you''re going to.
>
> So, to restate, I''m wondering if there''s another way to
arbitrarily
> pass vars to the navigation controller, as needed, from the controller
> responsible for rendering any given page.
Have you considered using sessions?
Wish you the best of luck,
Rowan
--
Morality is usually taught by the immoral.