What is the meaning of double curly brackets migrations in yii2?

{{% users }} What does this mean? why you need the curly brackets and the %sign
July 2nd 19 at 13:41
2 answers
July 2nd 19 at 13:43
The braces are replaced with the characters highlight the name of the table. For example in mysql this character `
that is, {{user}} in the query will go like `user`

The percent sign is replaced with the table prefix, if you installed it in the config the database connection
For example, in the config specified
'tablePrefix' => 'qwe_'
the {{%user}} in the request will be added as `qwe_user`
July 2nd 19 at 13:45

Find more questions by tags Yii