Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sencha Touch application structure

I'm pretty new to Sencha Touch and am trying to make a simple application that has a login form and makes calls and fetch results into lists.

My question is, how should I create the structure of the application? Should it all be inside one .html file? or should I different pages for each list and the login page? If so, how can I change views from one page to another and get transition effects?

like image 834
Jon Doe Avatar asked Jan 03 '11 17:01

Jon Doe


1 Answers

There is actually a generator which you can use to generate the canonical app structure. From the Sencha download, go to the jsbuilder directory, then run a command similar to this:

./sencha.sh generate app MyApp path/to/myapp

Also, this slide set demonstrates the structure, though you may have to dig for more of the philosophy for why things are where:

http://www.sencha.com/conference/sessions/session.php?sid=322

And here's the example app talked about in the discussion:

http://cl.ly/1d1S282O1Y2c3N1v1j1i

like image 151
Bill Eisenhauer Avatar answered Sep 20 '22 02:09

Bill Eisenhauer