1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 02:18:20 +01:00
This commit is contained in:
Xuan Sang LE 2018-08-28 10:49:12 +02:00
parent 3d2e1299b1
commit 692d437c67
3 changed files with 25 additions and 19 deletions

View File

@ -1,8 +1,10 @@
BaseController:subclass("IndexController",
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,9 @@
BaseController:subclass("UserController",{
BaseController:subclass(
"UserController",
{
models = {"user"}
})
}
)
function UserController:index(...)
local args = {...}

View File

@ -21,6 +21,7 @@ end
function BaseObject:error(msg, trace)
html()
--local line = debug.getinfo(1).currentline
echo(msg)
self:log(msg,"ERROR")
if trace then