T
T
tempick2018-06-10 21:15:21
Yii
tempick, 2018-06-10 21:15:21

What should be in the frontend and what should be in the backend?

Previously, I only worked with yii2 basic, but then I had to work with the advanced version, and then I saw two folders - frontend and backend. And then I hit a dead end. The task is elementary - to get data from the database and display it on the page. So, the question is: where do you need to create models for tables and controllers? In which part of the views to display the result?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2018-06-10
@tempick

Not the best name from the Yii2 team (which they admit)
It's all backend - it's 2 applications created as a sample and are not at least a dogma for the structure of your project, just for convenience
frontend- they imply that this will be a project for the site itself, backend -- site admin panel
It's still the same Yii2, just a slightly more sophisticated structure is
.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question