Are you saying you want to do this someplace other than in a model file? The 
model file will be the first place where you'll be able to introduce any 
application logic (prior to that it's just framework code getting executed).

On Sunday, July 10, 2011 3:48:47 PM UTC-4, Luis Goncalves wrote:

> more thoughts:
>
> could I do something like:
>
>    - define a shared global variable  session.version 
>     - = -1 initially, signifying no choice made
>    - ? use a callback that gets executed *before *the controller that 
>    responds to the request 
>       - if session.version >-1:
>            let the responding controller do its thing
>       else:
>            if controller allowed to run:
>                 let the controller run
>            else:
>                 redirect to 'please choose version'
>       
> Is it possible to implement such a "callback"???
>
> (or is this not the right/best way to achieve the functionality I need?)
>
> thanks,
> Luis.
>

Reply via email to