Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How use isRated in another controller? #4

Closed
anupalhub opened this issue Jun 28, 2016 · 0 comments
Closed

How use isRated in another controller? #4

anupalhub opened this issue Jun 28, 2016 · 0 comments

Comments

@anupalhub
Copy link

anupalhub commented Jun 28, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants