Skip to content
Advertisement

Get parent name of a user GridView Yii2

I want to get the parent username of a user

The ‘parent.username’ works this way:

But I need url the user profile, and I have it like this

JavaScript

It is possible to get the username?

Thank you

Advertisement

Answer

In the User class:

JavaScript

In the gridView:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement