G
G
galithr2016-08-04 09:07:43
Yii
galithr, 2016-08-04 09:07:43

What is the correct name for the models?

The question arose - how to correctly name the Active Record classes - in the plural or not? for example, there is an Active Record of clients, how would it be more correct to call it Client or Clients? Perhaps there are some standards that describe such things ....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-08-04
@galithr

There are yii recommendations on class names, they recommend a single number except for a few cases, I can’t find a link, but it is recommended that the model be called a single number.
However, it should be understood that naming models will not affect the script in any way. These rules are advisory in nature, for standardization and readability of the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question