public function version()
{
if ($this->_version === null) {
if (file_exists($this->appPath . 'VERSION')) {
$this->_version = trim(str_replace(array('SERIAL', "\n"), array('0', ''), file_get_contents($this->appPath . 'VERSION')));
} else {
$this->_version = '0';
}
}
return $this->_version;
}