1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-23 17:19:47 +02:00
This commit is contained in:
Xuan Sang LE
2018-08-27 20:10:53 +02:00
parent 30762988cf
commit 48ad3a30da
14 changed files with 43 additions and 34 deletions

View File

@ -1,8 +1,8 @@
IndexController = BaseController:extends{
class = "IndexController",
registry = {},
models = { "sections", "category" }
}
BaseController:subclass("IndexController",
{
registry = {},
models = { "sections", "category" }
})
local sectionsByCid = function(db, id)
local cond = { exp = { ["="] = { cid = id } } , order = { start = "DESC" } }

View File

@ -1,6 +1,4 @@
TocController = BaseController:extends{
class = "TocController"
}
BaseController:subclass("TocController")
function TocController:index(...)
return true

View File

@ -1,7 +1,6 @@
UserController = BaseController:extends{
class = "UserController",
BaseController:subclass("UserController",{
models = {"user"}
}
})
function UserController:index(...)
local args = {...}