1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 02:18:20 +01:00
antd-web-apps/apps/silk/BaseController.lua

22 lines
522 B
Lua
Raw Normal View History

2018-08-21 15:16:36 +02:00
-- 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