function actionIndex($params = '') { $objBackup = new BackupModel(); $currentBackups = $objBackup->getBackups(); $this->view->assign('messages', $this->messages); $this->view->assign('currentBackups', $currentBackups); $this->view->assign('content', $this->view->fetch('tpl/administration/backup.tpl')); $this->finish(); }
public function renderDefault() { $this->template->backups = $this->backupModel->getBackups($this->path); $this->template->couldMakeNew = $this->configModel['backup']['number'] >= count($this->template->backups); $this->template->foreign = $this->configModel['backup']['foreign']; }