You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have rated model User and everything is working perfect in UsersController with public $modelName = 'User'; set in Ratingscomponent But now want to get true/false of isRatedBy in DealsController.
I tried to put the Ratings.Ratings component in Deals components but that too throwing error at Error: Call to a member function attached() on a non-object Line: 122 in Ratingscomponent
because your have used controller logic in the component so didn't tried to hard code that.
Am struggling to run this please help.
Thanks
The text was updated successfully, but these errors were encountered:
I have rated model
User
and everything is working perfect inUsersController
with public$modelName = 'User';
set inRatingscomponent
But now want to get true/false ofisRatedBy
inDealsController
.I tried to put the
Ratings.Ratings
component in Deals components but that too throwing error atError: Call to a member function attached() on a non-object Line: 122 in Ratingscomponent
because your have used controller logic in the component so didn't tried to hard code that.
Am struggling to run this please help.
Thanks
The text was updated successfully, but these errors were encountered: