diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-01-19 16:11:08 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-01-19 16:11:08 +0000 |
commit | 2b3a7472f9b4c3c25e1fe7d607d5d0df7eac90e8 (patch) | |
tree | bb02ada58a7fc3540a866c1a2a7a962a6f6064be /app/acf_cli-controller.lua | |
parent | 7f7a661bc5ced049d776da54ac44db2fbb1e4b81 (diff) | |
download | acf-core-2b3a7472f9b4c3c25e1fe7d607d5d0df7eac90e8.tar.bz2 acf-core-2b3a7472f9b4c3c25e1fe7d607d5d0df7eac90e8.tar.xz |
Starting to reorganize mvc.lua and acf_www controllers to move www-specific things from mvc to acf_www, and visa versa
Goal is to have mvc.lua more usable from a lua app
Also affects acf-cli and acf_cli controller
Diffstat (limited to 'app/acf_cli-controller.lua')
-rw-r--r-- | app/acf_cli-controller.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/acf_cli-controller.lua b/app/acf_cli-controller.lua index 3d4a3e9..295bd47 100644 --- a/app/acf_cli-controller.lua +++ b/app/acf_cli-controller.lua @@ -8,7 +8,8 @@ mvc.on_load = function (self, parent) self.conf.libdir = self.conf.libdir or ( string.match(self.conf.appdir, "[^,]+/") .. "/lib/" ) self.conf.script = "" self.conf.default_prefix = "/acf-util/" - self.conf.default_controller = "welcome" + self.conf.default_controller = "welcome" + self.conf.viewtype = "serialized" -- this sets the package path for us and our children for p in string.gmatch(self.conf.libdir, "[^,]+") do @@ -25,13 +26,13 @@ end mvc.post_exec = function () end - +--[[ view_resolver = function(self) return function (viewtable) print(session.serialize("result", viewtable)) end end - +--]] --[[ The parent exception handler is just fine exception_handler = function (self, message ) print(session.serialize("exception", message)) |