Yii2 passing of Data from model to view throws undefined array key exception even after render
I have learned that to pass the data from Model to view, you have to use the siteController or a dedicated Controller then make sure they are included in the data array passed to the render method.