Skip to content

Commit

Permalink
update skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
idevz committed May 6, 2016
1 parent e79f98d commit 81966d0
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions vanilla/sys/application.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ local base_controller = [[
local BaseController = Class('controllers.base')
function BaseController:__construct()
print_r('-=-=---------BaseController:init----------------')
self.d = 'vddda===========ddd===='
self.cc = '----vvvaadd-------'
print_r('----------------BaseController:init----------------')
local get = self:getRequest():getParams()
self.d = '----------------base----------------' .. get.act
end
function BaseController:fff()
Expand All @@ -81,32 +81,28 @@ return BaseController

local index_controller = [[
-- local IndexController = Class('controllers.index', LoadApplication('controllers.base'))
local IndexController = Class('controllers.index')
-- local IndexController = {}
-- local IndexController = Class('controllers.index')
local IndexController = {}
local user_service = LoadApplication('models.service.user')
aa = LoadLibrary('aa')
-- aa = LoadLibrary('aa')({info='ppppp'})
function IndexController:__construct()
print_r('===========IndexController:init===============')
-- self.aa = LoadLibrary('aa')({info='ppppp'})
-- self.parent:__construct()
local get = self:getRequest():getParams()
self.d = '-----------ccccccc----------' .. get.act
end
local aa = LoadLibrary('aa')
-- function IndexController:__construct()
-- -- self.parent:__construct()
-- print_r('===============IndexController:init===============')
-- -- -- -- self.aa = aa({info='ppppp'})
-- -- -- -- self.parent:__construct()
-- local get = self:getRequest():getParams()
-- self.d = '===============index===============' .. get.act
-- end
function IndexController:index()
-- local get = self:getRequest():getParams()
-- print_r(aa.lib)
-- print_r(self.aa.lib)
-- self.parent:fff()
-- do return '-' end
do return user_service:get()
.. sprint_r(aa:idevzDobb())
-- .. sprint_r(self.aa:idevzDobb())
-- .. sprint_r(self.parent.aaa)
.. Registry['APP_NAME']
.. self.d
-- .. self.d
end
local view = self:getView()
local p = {}
Expand Down Expand Up @@ -253,11 +249,11 @@ function LibAa:idevzDo(params)
return params
end
-- function LibAa:__construct( data )
-- print_r('===============init==aaa=======' .. data.info)
-- -- self.parent:init()
-- self.lib = 'LibAa----------------------------aaaa'
-- end
function LibAa:__construct( data )
print_r('===============init==aaa=======' .. data.info)
-- self.parent:init()
self.lib = 'LibAa----------------------------aaaa'
end
return LibAa
]]
Expand Down

0 comments on commit 81966d0

Please sign in to comment.