From 4fd9f4d290e83be622618f6edf25c5b807e23ba8 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 8 Feb 2017 13:03:22 +0200 Subject: [PATCH] customers search session add --- src/app/backend/controllers/CustomersController.php | 2 ++ src/app/backend/views/customers/index.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/backend/controllers/CustomersController.php b/src/app/backend/controllers/CustomersController.php index b5824a1..fd098ed 100644 --- a/src/app/backend/controllers/CustomersController.php +++ b/src/app/backend/controllers/CustomersController.php @@ -18,6 +18,8 @@ class CustomersController extends \Phalcon\Mvc\Controller $search_name = $this->request->getPost('search_name', 'string', NULL); $search_phone = $this->request->getPost('search_phone', 'int', NULL); + $this->session->set('search_name', $search_name); + $this->session->set('search_phone', $search_phone); if (!empty($search_name)) { $data = $this->models->getCustomers()->getDataByName($search_name); $total = 1; diff --git a/src/app/backend/views/customers/index.php b/src/app/backend/views/customers/index.php index 250dd02..cab5ba6 100644 --- a/src/app/backend/views/customers/index.php +++ b/src/app/backend/views/customers/index.php @@ -13,8 +13,8 @@
Пользователи
Добавить
- - + +
-- libgit2 0.21.4