diff --git a/src/app/backend/controllers/SeoController.php b/src/app/backend/controllers/SeoController.php index a6476b4..ee22640 100644 --- a/src/app/backend/controllers/SeoController.php +++ b/src/app/backend/controllers/SeoController.php @@ -19,6 +19,23 @@ class SeoController extends \Phalcon\Mvc\Controller ]); } + function setPdfFileAction() + { + if( !$this->session->get('isAdminAuth') ) + { + return $this->response->redirect([ 'for' => 'admin_login' ]); + } + + if ($this->request->hasFiles() == true) { + foreach ($this->request->getUploadedFiles() as $file){ + //Move the file into the application + $route = STORAGE_PATH.'temp/catalog.pdf'; + $file->moveTo($route); + } + } + + } + function deleteAction() { $id = $this->request->get('id'); diff --git a/src/app/backend/views/partial/sidebar.php b/src/app/backend/views/partial/sidebar.php index 6606240..71fe999 100644 --- a/src/app/backend/views/partial/sidebar.php +++ b/src/app/backend/views/partial/sidebar.php @@ -15,7 +15,6 @@
- = isset($modal['text']) ? $modal['text'] : 'Залиште свій email і отримайте приємний бонус разом з Вашою посилкою.' ?> -
-Акции
-Новинки
-Советы специалиста
-