hi, I’ve installed Rating plugin [1.0.0] using composer and load the plugin in …src/Application.php
$this->addPlugin(‘Ratings’);
Then I’ve loaded the rating table into the database. Next, load the rating components in controller:
$this->loadComponent(‘Ratings.Rating’, [‘actions’ => [‘view’]);
when load the view codes:
if (!$isRated) {
echo $this->Rating->control([
‘item’ => $post->id,
‘js’ => true,
]);
} else {
echo __(‘You have already rated.’);
echo $this->Rating->display($isRated[‘value’]);
}
it produced an error: RatingHelper could not be found in view. How can I solve this issue?