I need to display items of each category I have. I use smarty templates. So I get categories like this:
{foreach $news as $article}
<div class="panel panel-info">
<div class="panel-heading">{$article["name"]}</div>
<div class="panel-body">
"Here I need to display Items that have FOREIGN KEY 'category_id'"
</div>
</div>
{/foreach}
Whether I should get a category's ID and how then to display it? It's a category list with ID
I want to improve my question - here some links to my Controller. I've tried to put more links, but incase of low reputation I couldn't. Please try to see what I'm doing wrong?