Is there a need to use Controller in sencha touch? -


  1. what's relationship between controllers , views ? how organize them ?

  2. how dose controller work ? dose every view check if there controller listens events when activating ?

  3. for example,there many views,should put event handlers in 1 controller or create controller each view ?

  4. in current project,we not use controller while add needed event handlers in listeners config of component.it seems gose well.so,is there need use controller?

  5. can give me usefull mcv examples ? wander how controller works in mvc pattern.

1) mvc implementation take at:

2) not necessary, when set listener controller attachs handler web page. same if set controller view config. consider reading: http://docs.sencha.com/touch/2.2.1/#!/guide/events

3) depend on how have organized application, example create controller each 'module', lets clients , products. events listeners of clients module's views in clients controller , so. or separate depending on models or maybe depending on tabs if app has them ¿?

4) not need. missing interesting things, example if listeners share part of handlers? have write on every view/component re-work , maintenance issue take. , 1 great feature of using controllers getter/setter auto creates refs.

5) take at:

also, best review examples st provides in package, example geocongress, oreilly or kitchensink

as can see there lot of info @ official site :)

hope helps


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -