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
f365a219
authored
May 23, 2018
by
Wittaya-PIM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1cf54a6a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
www/src/Controller/UserCardsController.php
+3
-3
No files found.
www/src/Controller/UserCardsController.php
View file @
f365a219
...
@@ -231,7 +231,7 @@ class UserCardsController extends AppController
...
@@ -231,7 +231,7 @@ class UserCardsController extends AppController
}
}
public
function
viewCard
(
$user_id
=
null
){
public
function
viewCard
(
$user_id
=
null
){
$this
->
viewBuilder
()
->
layout
(
'blank'
);
$this
->
viewBuilder
()
->
layout
(
'blank'
);
// $user = $this->Auth(
);
$user_id
=
$this
->
Auth
->
user
(
'id'
);
$this
->
loadModel
(
'UserCards'
);
$this
->
loadModel
(
'UserCards'
);
$UserCards
=
$this
->
UserCards
->
find
(
'all'
)
$UserCards
=
$this
->
UserCards
->
find
(
'all'
)
->
select
(
$this
->
UserCards
)
->
select
(
$this
->
UserCards
)
...
@@ -302,8 +302,8 @@ class UserCardsController extends AppController
...
@@ -302,8 +302,8 @@ class UserCardsController extends AppController
$userCard
[
'date_expiry'
]
=
$TempUserCards
[
'date_expiry'
];
$userCard
[
'date_expiry'
]
=
$TempUserCards
[
'date_expiry'
];
$userCard
[
'signature'
]
=
$TempUserCards
[
'signature'
];
$userCard
[
'signature'
]
=
$TempUserCards
[
'signature'
];
$userCard
[
'is_used'
]
=
$TempUserCards
[
'is_used'
];
$userCard
[
'is_used'
]
=
$TempUserCards
[
'is_used'
];
$userCard
[
'created_by'
]
=
1
;
$userCard
[
'created_by'
]
=
$this
->
Auth
->
user
(
'id'
)
;
$userCard
[
'user_id'
]
=
1
;
$userCard
[
'user_id'
]
=
$this
->
Auth
->
user
(
'id'
)
;
// pr($userCard);die;
// pr($userCard);die;
if
(
$this
->
UserCards
->
save
(
$userCard
))
{
if
(
$this
->
UserCards
->
save
(
$userCard
))
{
// pr('sdsd');die;
// pr('sdsd');die;
...
...
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