Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
smart_core_connect
/
core-connect
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9765bb8e
authored
May 14, 2018
by
Zen-PC\Zen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'kraikrit' into integration
parents
e19e00e7
ff4ebd01
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
www/src/Controller/UserprofilesController.php
+6
-6
www/src/Template/UserProfiles/profile_setting.backup
+0
-0
www/src/Template/UserProfiles/profile_setting.ctp
+0
-0
No files found.
www/src/Controller/UserprofilesController.php
View file @
9765bb8e
...
...
@@ -105,7 +105,7 @@ class UserProfilesController extends AppController {
if
(
$this
->
request
->
is
([
'patch'
,
'post'
,
'put'
]))
{
// debug($this->request->data);
// exit;
$data
=
$this
->
request
->
data
;
#
pr($data);
$data
=
$this
->
request
->
data
;
//
pr($data);
list
(
$data
[
'UserPersonals'
][
'firstname_th'
],
$data
[
'UserPersonals'
][
'lastname_th'
])
=
explode
(
' '
,
$data
[
'UserPersonals'
][
'fullname'
]);
unset
(
$data
[
'UserPersonals'
][
'fullname'
]);
$data
[
'UserPersonals'
][
'birthdate'
]
=
''
;
...
...
@@ -117,8 +117,8 @@ class UserProfilesController extends AppController {
$data
[
'UserProfiles'
][
1
][
'user_id'
]
=
$data
[
'Users'
][
'user_id'
];
$data
[
'UserProfiles'
][
1
][
'user_type_id'
]
=
2
;
$data
[
'UserProfiles'
][
1
][
'modified_by'
]
=
''
;
debug
(
$data
);
exit
;
//
debug($data);
//
exit;
#$api_update_profile = 'http://connect06.pakgon.com/api/Connects/Profile/updateProfile';
$api_update_profile
=
Configure
::
read
(
'Config.apiCore.profile'
)
.
'/updateProfile'
;
$http
=
new
Client
();
...
...
@@ -132,10 +132,10 @@ class UserProfilesController extends AppController {
];
#prr($options);
$response
=
$http
->
post
(
$api_update_profile
,
$data
,
$options
)
->
body
();
pr
(
$response
);
//
pr($response);
$response
=
json_decode
(
$response
,
'_full'
);
pr
(
$response
);
die
;
//
pr($response);
//
die;
}
// $organization = $this->UserProfiles->MasterOrganizations->find('list')->select(['MasterOrganizations.id', 'MasterOrganizations.org_name_th'])->where(['master_organization_type_id' => 1]);
...
...
www/src/Template/UserProfiles/profile_setting.backup
0 → 100644
View file @
9765bb8e
This diff is collapsed.
Click to expand it.
www/src/Template/UserProfiles/profile_setting.ctp
View file @
9765bb8e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment