Initial commit of Version Controller and View
This commit is contained in:
parent
2f99274c0a
commit
b2ab1cea09
|
@ -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'));
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
|
@ -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
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue