I need to display a different logo image (in layout.php) based on the country from which the site is being browsed. Setting it in the action doesn’t work, as the layout is rendered before preExecute() (or any other action) is called.
How would I set the culture before the layout is rendered and then call on this variable in layout.php?
I don’t think that’s true. Layout is rendered after action is called. The example is that you can change de layout in the actions.class with $this->setLayout();
Anyway, I think that you can use one slot to solve your problem.
In layout:
then, in your action template (f.e. indexSuccess)