This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.
One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.
The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.