view is defined as a parameter in the init function. But you are right, seems like my code is some kind of a missconception. My intention actually was to make some kind of "component" which I can use in all of my controllers.
↧