1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-26 10:39:46 +02:00

using silk as base framework for all webapp

This commit is contained in:
Xuan Sang LE
2018-08-23 11:15:08 +02:00
parent dd778713d3
commit b07da22b52
13 changed files with 110 additions and 81 deletions

View File

@ -6,9 +6,8 @@ PostController = BaseController:extends{
function PostController:index(...)
local args = {...}
self.template:set("index", args[1])
self.template:set("dummy", "This is a dummy string")
self:setSession("postsession", "Huehuehue")
self.template:set("post", self.post:findAll())
return true
end
@ -18,8 +17,7 @@ function PostController:edit(...)
else
self.template:set("auth", false)
end
self:setLayout("admin")
--self:redirect("/category/put/1")
self:switchLayout("admin")
return true
end