Answer the question
In order to leave comments, you need to log in
Where is the best place to store Yii2 search models?
Good afternoon! A question about the structure of a basic application, it’s more competent to store search models in the models folder with the main application models, or else move them to a separate directory, let’s say to the root of the application, so that when their number grows, you don’t get porridge from models
Answer the question
In order to leave comments, you need to log in
let's go to the root
Keep related items nearby.
Product search model next to the Product model, category search model next to the category.
It makes no sense to allocate a folder for "all" search models,
see Project structure, LIFT
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question