I have two views. The main view has some text and a button. I want to use that button to switch to the second view. But i don't know how this works with sencha touch 2. This is basically how my code looks right now:

Would be best if the new view is triggered from within a controller instead of a view ofcourse...

nofx

17 Jan 2012, 6:43 AM

Fortunately i got a bit further. I added a Viewport.js which now loads the first view and i changed my app.js a bit. The first view has a button and when clicked, a controller succesfully responds to that. Next thing i need to do is switch to another view. But i still have problems with that... Here's my viewport: