There is an admin module. GRUD generated views, models, controllers Caregory model and Content model. Categories and subcategories of products are recorded in the Caregory and category table -
Interconnected tables related to Content.category_id = Category.id I need to go to a link when clicking on a link in order to display a view with goods of a given category. As far as I understand it is necessary to make so that there was a request where categories are compared, something as like
$categories = Category::find() ->select('id','name') ->where('content.category_id = category.id') ->all(); But I do not know how to register. Created an action in the controller, where the url should be displayed
public function actionAlbum() { return $this->render('album'); } So the question is how to display in the album view the data on the category parameters ??

