1. #1
    Sencha User luismerino's Avatar
    Join Date
    Oct 2011
    Location
    Berlin
    Posts
    46
    Answers
    1
    Vote Rating
    4
    luismerino is on a distinguished road

      0  

    Default Answered: Ext.dispatch logic for 2.0?

    Answered: Ext.dispatch logic for 2.0?


    Hi:

    Great, awesome work on Sencha Touch 2. I confess I've never used Touch 1, although I've found numerous blogs posts and articles on it. Looking at "dispatch" and "router", which aren't present in the developer preview anymore I wonder if I'm missing the point here.
    How will I fire up my actions and controllers from any part of the code?

    How would I call this controller? For example from app.launch

    Code:
    Ext.define('Pistachio.controller.Profile', {
        extend: 'Ext.app.Controller',
        
        models: ['Pistachio.Auth'],
        
        views: [],
        
        init: function() {
            console.log('initialized Profile controller.');
        },
        
        show: function() {
            console.log('Profile controller show.');
        }
    });
    Ext.dispatch({controller: 'profile', action: 'show'}); // certainly not

    Router does not exists, and URL hash changes aren't captured either. I'm lost here.


  2. #2
    Sencha User
    Join Date
    Jun 2011
    Posts
    18
    Answers
    1
    Vote Rating
    0
    Akrion is on a distinguished road

      0  

    Default


    I would like to know this as well ... I was using heavily Dispatch in 1.0.

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    18
    Answers
    1
    Vote Rating
    0
    Akrion is on a distinguished road

      0  

  4. #4
    Sencha User luismerino's Avatar
    Join Date
    Oct 2011
    Location
    Berlin
    Posts
    46
    Answers
    1
    Vote Rating
    4
    luismerino is on a distinguished road

      0  

    Default


    Okay, events are always a good solution. How about history and url hash push change, what class manages this in ST 2?

  5. #5
    Sencha User
    Join Date
    Jun 2011
    Posts
    18
    Answers
    1
    Vote Rating
    0
    Akrion is on a distinguished road

      0  

    Default


    That will be done through "routes", which are not part of the initial Beta for the ST 2.0 (as per Sencha Conference)

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi