Note: In other views you will need models with predefined relations to reach the correct value. Relations can be created using GII (when they are defined in MySQLDB) or [manually](https://www.yiiframework.com/doc/guide/2.0/en/db-active-record#relational-data).