1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    7
    Vote Rating
    0
    gmartin777 is on a distinguished road

      0  

    Default Unanswered: Can you help outline a general MVC approach to a simple app?

    Unanswered: Can you help outline a general MVC approach to a simple app?


    I'm new to Sencha, but I thought I'd learn it by creating the following simple "tips and tricks" app. Here's a description of what I'm looking to accomplish:

    The app is basically a collection of 100 or so short tips or tricks, some of which include png files.
    I would like the content to be available offline in a phonegap or webworks packaged hybrid native app.
    The main view ought to allow users to navigate through the 100 or so short tips or tricks by category, tag, and new (as in not previously viewed).
    The tip view involves "next or previous" navigation and a view of the content.
    I'd need to be able to easily and efficiently update the existing short tips and tricks and add new ones.

    Basically, what's preventing me from getting started with the learning process is the data storage. What's the easiest and best way to go about a project like this given that users will not be adding tips and tricks and all I'm really trying to create is a very simple content management system for a Sencha hybrid app?

    TIA,

    -- B.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Answers
    3447
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    If you want offline viewing then go with localstorage or sqlite. You would have to do an Ajax request to get data from the server for starting and new tips and then add to the store and sync it.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1