Skip to content
ngocdaothanh edited this page Nov 27, 2010 · 21 revisions

Scopes

Normally, states of a web application can be stored in the following scopes: application, session, flash, request, and view.

In Xitrum:

  • application: xt.Config + DIY
  • session: xt.vc.Controller#session
  • flash: xt.vc.Controller#flash
  • request: xt.vc.Controller#at (like Rails’ @my_var)
  • view: xt.vc.Controller#page (saved in a JavaScript variable on page the browser side)

Request processing lifecycle

Clone this wiki locally