skip to content
Ryan Wu

Scope is a core idea in ZK.

Execution / Page / Session / Desktop / WebApp

When you build an app with ZK, the same questions keep coming up. I used ZK’s grouping feature to put the common methods next to what they actually return, so these are quick to answer:

“How do I get the path of the current request?”

“How do I get the title of the current page?”

“How do I get the current Session?”

“How do I get the current ZK version?”

“How do I redirect to another page?”

There are plenty more. I will not list them all here.

If I think of others, I will add them.

Reference screenshots:

Should help if you are just getting started with ZK.

The code is in the attachment.

Attachment: * [scope.zip](http://dl.iteye.com/topics/download/292d04d2-8d8b-3cc8-ba1d-c615a4c4d29f) (1.9 KB)