mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-12-29 10:48:21 +01:00
22 lines
522 B
Lua
22 lines
522 B
Lua
-- create class
|
|
BaseController = Object:extends{registry = {}, models = {}}
|
|
-- set the name here in each subclasses
|
|
function BaseController:initialize()
|
|
-- create model object here
|
|
--- infer the class here
|
|
end
|
|
|
|
function BaseController:redirect()
|
|
end
|
|
|
|
function BaseController:checkSession(key)
|
|
end
|
|
function BaseController:setSession(key)
|
|
end
|
|
function BaseController:getSession(key)
|
|
end
|
|
function BaseController:removeSession(key)
|
|
end
|
|
function BaseController:index()
|
|
error("#index: subclasses responsibility")
|
|
end |