Add API function to get ZM version

This commit is contained in:
Kyle Johnson 2014-11-24 00:52:27 +00:00
parent 7ba971806f
commit 40dcca2084
1 changed files with 9 additions and 0 deletions

View File

@ -58,4 +58,13 @@ class HostController extends AppController {
'_serialize' => array('space') '_serialize' => array('space')
)); ));
} }
function getVersion() {
$version = Configure::read('ZM_VERSION');
$this->set(array(
'version' => $version,
'_serialize' => array('version')
));
}
} }