You can try expanding MainView as follows:
var SubView = MainView.extend({ });
This will then give you a reference to the hello function in MainView .
Or, in SubView , add this to your render function:
MainView.prototype.hello.call(this)
This will call the hello function in MainView using the context (template, other bars, etc.) of the SubView instance.
source share