v9.0.0 fonction export à corriger

This commit is contained in:
fredtempez 2018-12-25 18:38:17 +01:00
parent 5fd5285e95
commit dc60b4929d
2 changed files with 12 additions and 12 deletions

View File

@ -25,8 +25,8 @@ class theme extends common {
'reset' => self::GROUP_ADMIN,
'site' => self::GROUP_ADMIN,
'manage' => self::GROUP_ADMIN,
'themeExport' => self::GROUP_ADMIN,
'themeImport' => self::GROUP_ADMIN
'export' => self::GROUP_ADMIN,
'import' => self::GROUP_ADMIN
];
public static $aligns = [
'left' => 'À gauche',
@ -447,18 +447,18 @@ class theme extends common {
* Import du thème
*/
public function manage() {
// Valeurs en sortie
$this->addOutput([
'title' => 'Gestion des thèmes',
'view' => 'manage'
]);
}
// Valeurs en sortie
$this->addOutput([
'title' => 'Gestion des thèmes',
'view' => 'manage'
]);
}
/**
* Export du thème
*/
public function themeExport() {
public function export() {
// Creation du ZIP
$fileName = date('Theme Y-m-d-h-i-s', time()) . '.zip';
$zip = new ZipArchive();
@ -482,7 +482,7 @@ class theme extends common {
/**
* Import du thème
*/
public function themeImport() {
public function import() {
}
}

View File

@ -10,13 +10,13 @@
</div>
<div class="col2">
<?php echo template::button('themeImport', [
'href' => helper::baseUrl() . 'theme/themeImport',
'href' => helper::baseUrl() . 'theme/import',
'value' => 'Importer les données du thème'
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeExport', [
'href' => helper::baseUrl() . 'theme/themeExport',
'href' => helper::baseUrl() . 'theme/export',
'value' => 'Exporter les données du thème'
]); ?>
</div>