webmcp

view framework/env/request/get_action.lua @ 34:e19b0b5c46ba

allow execptions an slot.reset_all()

this is usefull when an error is detected deep into a view where you want redirect
to something usefull, but still save some slots like notice and error slots
author Daniel Poelzleithner <poelzi@poelzi.org>
date Wed Oct 06 16:14:33 2010 +0200 (2010-10-06)
parents 9fdfb27f8e67
children 2f8d8edd1836
line source
1 --[[--
2 action_name =
3 request.get_action()
5 Returns the name of the currently requested action, or nil in case of a view.
7 --]]--
9 function request.get_action()
10 if request._forward_processed then
11 return nil
12 else
13 return cgi.params._webmcp_action
14 end
15 end

Impressum / About Us