That is a solution, but not a very good one. It's not exactly good practice to use global variables, no matter if you're talking about Views, or about PHP itself.
You can pass variables on from a parent to a child view using
to pass all data. For < 5.5, you could use $__data for that, but that is not officially supported.
However, hardcoding child views isn't exactly good practive either. A view should not contain code (apart from some flow-control, like if's and loops). Either pass a child View as an object from the controller (and assign your variables there like you do for the parent View), use a Presenter (and have it pass the View object), or use the Theme class, which will do all the assigning for you.
I can't thank you enough. That's the exact solution I needed.
I don't exactly hard code child view. I have the same HTML (a table with some values on it) and it has to be shown in several different actions. So I cut the table out to a separate view file. I didn't know render() can pass valuable that way. Thanks again.