diff --git a/app/Controllers/Users.php b/app/Controllers/Users.php index a0ae9869..de902321 100755 --- a/app/Controllers/Users.php +++ b/app/Controllers/Users.php @@ -42,6 +42,8 @@ class Users extends BaseController if ($id === '0') { $this->logger->info("Users: In Add page"); $data['page_name'] = 'Add User'; + $business_details = $this->business_details(); + $render_page_name = 'user_form'; $data['details'] = []; } else if ($id !== '0') { $this->logger->info("Users: In Edit page"); @@ -172,7 +174,6 @@ class Users extends BaseController } $data = [ - 'user_name' => $this->request->getPost('user_name'), 'profile_picture' => $final_img_name, 'city' => $this->request->getPost('city'), 'state' => $this->request->getPost('state'), @@ -211,12 +212,11 @@ class Users extends BaseController } else { // It's an update operation $isactive = $this->request->getPost('isactive'); + $data['updated_by'] = $session_uid; $data['isactive'] = ($isactive == 'on') ? 1 : 0; if($session_uid == $user_id && $data['isactive'] == 0){ throw new \Exception("Cant able to Update Because logged-In persons can't remove. Please Contact your Admin!...."); } - $data['updated_by'] = $session_uid; - // $UsersModel->update($user_id, $data); if ($UsersModel->update($user_id, $data)) { session()->setFlashdata('success', 'User has been updated successfully.'); $this->logger->info("Users: has been updated successfully. Updated ID = ".$user_id); diff --git a/app/Views/api_list.php b/app/Views/api_list.php deleted file mode 100644 index c183b4fd..00000000 --- a/app/Views/api_list.php +++ /dev/null @@ -1,26 +0,0 @@ - - -
-The page you are looking at is being generated dynamically by CodeIgniter.
- -If you would like to edit this page you will find it located at:
- -app/Views/welcome_message.php
-
- The corresponding controller for this page can be found at:
- -app/Controllers/Home.php
-
-The User Guide contains an introduction, tutorial, a number of "how to" - guides, and then reference documentation for the components that make up - the framework. Check the User Guide !
- -CodeIgniter is a community-developed open source project, with several - venues for the community members to gather and exchange ideas. View all - the threads on CodeIgniter's forum, or chat on Slack !
- -CodeIgniter is a community driven project and accepts contributions - of code and documentation from the community. Why not - - join us ?
- -