how to prepare getMyModelIdOptions related with logged user #794
Answered
by
SledgehammerPL
SledgehammerPL
asked this question in
Q&A
-
In Controller it is simple $this->user->id But getMyModelIdOptions() id defined in model:
So it will not work... In model this means model....which is not related to user.. |
Beta Was this translation helpful? Give feedback.
Answered by
SledgehammerPL
Dec 9, 2022
Replies: 1 comment
-
use BackendAuth; $user = BackendAuth::getUser(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SledgehammerPL
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use BackendAuth;
$user = BackendAuth::getUser();
$user->id is what i wanted