Display all fields without knowing object type?
You can

&lt;pre&gt;
{{ dump(myObject) }}
&lt;/pre&gt;


And see it's type and attributes. You can as well use {{ dump(Object.getAttributes) }} with nearly everything in Yii2. If it's just about getting to know what object you currently have this function will be your friend once you know how to use it. Another approach would be much simpler yet more powerful: take a look at the source code or enable intellisense for your IDE and let your IDE show you everything