Global variables in presenters

Notice: This thread is very old.
bafoed
Member | 6
+
0
-

How can I define global variables for all presenters?
For all templates I can use beforeRender() function. But this don't work with presenters.
For example, i want to store $lang variable in all presenters.
Overwriting __construct of BasePresenter (with parent::__construct()) throws an Exception.

P.S. Sorry for bad English.

voda
Member | 561
+
0
-

You can use the startup method.

bafoed
Member | 6
+
0
-

Thank you. I actually read the documentation, just did not see this paragraph.