summaryrefslogtreecommitdiffstats
path: root/loadingdemo-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'loadingdemo-controller.lua')
-rw-r--r--loadingdemo-controller.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/loadingdemo-controller.lua b/loadingdemo-controller.lua
index d259d2c..817196a 100644
--- a/loadingdemo-controller.lua
+++ b/loadingdemo-controller.lua
@@ -5,6 +5,13 @@ default_action = "read"
function read(self)
local versioncontroller = self:new("alpine-baselayout/alpineversion")
local versionresult = versioncontroller:read()
+
+ -- Here's how you call the model directly
+ local modelresult = versioncontroller.model:get()
+
versioncontroller:destroy()
- return cfe({ value="I called alpineversion:read(), and you are running version "..versionresult.value, label="Alpine version" })
+
+ return cfe({ controller="I called alpineversion:read(), and you are running version "..versionresult.value,
+ model="The model call to get() returned " .. modelresult.value
+ })
end