title = "category" url = "/category/:id" layout = "default" is_hidden = 0 == param('id'); $this['category'] = Tps\Shops\Models\Category::where("id", $id)->get()->first(); $this['shops'] = Tps\Shops\Models\Shop::where('category_id', $this->param('id'))->paginate(12); } ?> == {{'Главная'|_}} {{category.top_category.name}} {{category.name}} {% for shop in shops%} {% partial 'home/shop_item' shop=shop %} {% endfor %} {% partial 'home/pagination' result=shops %}