Hi guys
Is there a way to attach the same init method (beforeShow and show too) to all Views, without specifying on html? Or maybe a way to bind to an event that gets triggered from all Views?
I think a good way to solve this would be the possibility to specify the View init method through the Layout. I have many Views with the same Layout, and all of them use the same init and show method. If we could put that in the Layout, the markup would become simpler and more maintainable.
Thanks!
Is there a way to attach the same init method (beforeShow and show too) to all Views, without specifying on html? Or maybe a way to bind to an event that gets triggered from all Views?
I think a good way to solve this would be the possibility to specify the View init method through the Layout. I have many Views with the same Layout, and all of them use the same init and show method. If we could put that in the Layout, the markup would become simpler and more maintainable.
Thanks!