summaryrefslogtreecommitdiffstats
path: root/loadingdemo-controller.lua
blob: 817196afbe47d411280ad76094f69f457676d72c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module(..., package.seeall)

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({ controller="I called alpineversion:read(), and you are running version "..versionresult.value,
		     model="The model call to get() returned " .. modelresult.value 
		     })
end