An open API service indexing awesome lists of open source software.

https://github.com/thecodeholic/yii2-best-practices

This repository contains best practices and recommendations about Yii2 framework
https://github.com/thecodeholic/yii2-best-practices

Last synced: 7 months ago
JSON representation

This repository contains best practices and recommendations about Yii2 framework

Awesome Lists containing this project

README

          

# Yii2 Best Practices
This repository contains best practices and recommendations about Yii2 framework

## Database

#### Naming database tables
Name your tables always in singular form (Ex: `user`, `article`, `country`).

Naming your tables in plural form (Ex: `users`, `articles`, `countries`) will cause by default models to have name in plural as well (Ex: `Users`, `Articles`, `Countries`) and you will have to manually change the generated model names in relations.