lundi 9 février 2015

Help with getting started with 5.x (migrating from 3.4)

I have been using 3.x for quite awhile now, and recently have had the approval to migrate our application to 5.x.

The new MVC/MVVM options are very appealing, however, I'm just having difficulty wrapping my head around what goes where. It seems like a lot of the examples are a mix of 4.x MVC style and 5.x MVVM style, and I'd like to try to stick with MVVM since it sounds like it might be a bit better to maintain.


My existing app has at it's core a viewport set up like the example in the getting started guide (Navigation via a tree in the west, tabpanel in center). I was able to get the example in the navigation guide working, even with a treepanel, but with static data. Now i'm having trouble getting a model/store set up for the navigation data to populate the tree.


Ideally I'd like the navigation tree to be it's own "view" under the app/view folder that is then included as an item in the viewport's items (app/main). Also, each tab would have it's own folder.


What I need eventually is the links in the navigation to load the view for each tab. But if I can at least get my navigation tree loading, that's a good start, and I'll then start researching the tab thing.


I'm not looking for someone to give me the whole thing, (but hey I'm not going to complain if you do), just point me in a little better direction. I've been pulling out my hair (what's left of it) trying to figure out how these stores and controllers and ViewModels and ViewControllers all interact, and it seems like there's a mix of 4.x and 5.x code in the examples that is just leading me in circles.


Thank you!






Help with getting started with 5.x (migrating from 3.4)

Aucun commentaire:

Enregistrer un commentaire