Initial commit of Version Controller and View

This commit is contained in:
Kyle Johnson 2013-09-13 08:55:46 -04:00
parent 2f99274c0a
commit b2ab1cea09
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<?php
class VersionController extends AppController {
public function index() {
$this->set('zmDynLastVersion', Configure::read('ZM_DYN_LAST_VERSION'));
$this->set('zmDynDBVersion', Configure::read('ZM_DYN_DB_VERSION'));
}
}
?>

View File

@ -0,0 +1,11 @@
<?php
if ($zmDynLastVersion > $zmDynDBVersion) {
?>
<div class="alert alert-info">A new upgrade is available!</div>
<?php
} else {
?>
<div class="alert alert-success">An upgrade is not available. Carry on.</div>
<?php
}
?>