1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-04-17 09:16:44 +02: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 = {}, registry = {},
models = {"sections", "category"} models = {"sections", "category"}
}) }
)
local sectionsByCid = function(db, id) local sectionsByCid = function(db, id)
local cond = {exp = {["="] = {cid = id}}, order = {start = "DESC"}} local cond = {exp = {["="] = {cid = id}}, order = {start = "DESC"}}

View File

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

View File

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