O'Reilly logo

Ext JS 4 Web Application Development Cookbook by Stuart Ashworth, Andrew Duncan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Attaching user interactions to controller actions

The MVC architecture provides us with a standard way of organizing our applications and means that the code can be easily read and understood by other developers because things are always in the same place.

After creating our application's views we must start handling events raised after a user interacts with them, and use our controller actions to provide a path through our application.

Before the MVC architecture existed, this interaction was usually dealt with inside the view itself, that is, a tight coupling between application logic and presentation definitions. MVC allows us to remove this coupling and let views solely focus on displaying data and have the controllers tie everything together. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required