Doubt about tableName method in User model

Hi Guys I have a doubt.

Wy in /common/model/User.php the method tableName() use {{%user}}?

Wy doble {{ and why %?

Sorry my stupid question.

It allows you to configure a table name prefix globally (per database connection).

Thanks @phtamas.

So it’s mean, if a table called tbl_someting, I configure $tablePrefix = ‘tbl’ and in my model I just call {{something}}. Ins’t is?

For a table named ‘tbl_something’, $tablePrefix should be ‘tbl_’ and you can call it {{%something}}.

When used with {{ }}, the name is assured to be a table name and will be quoted properly by Yii DAO.

Thanks @softark.