O.K. So I forgot to actually define $view property. Fixed it.