1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-29 10:48:21 +01:00
antd-web-apps/apps/silk/BaseController.lua
2018-08-21 15:16:36 +02:00

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