Answer the question
In order to leave comments, you need to log in
How to display data from the third table?
Good evening. I have three tables:
What relationships do I need to write in the models so that I can display data of this kind:
I access the news_post table and pass its values to the view, but in the view I want to display data from the category and news tables instead of id
Answer the question
In order to leave comments, you need to log in
2 links for post model. 1 for categoty and the second for news. Well, what exactly should logic determine: can a post belong to several categories and whether a post can belong to several news.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question