Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    7
    Vote Rating
    0
    actualeyes is on a distinguished road

      0  

    Default Unanswered: Different App directory For different pages or use the same directory structure

    Unanswered: Different App directory For different pages or use the same directory structure


    I am currently converting a page to the new MVC architecture. I am wondering the best practice for different pages. The MVC tutorial has a top namespace that refers to that one page. Does that mean that I should create a new MVC directory structure for each different page or can I use the same directories. If it is the latter, how do I deal with namespace issues when I want to reuse components from a different page.

    Thanks,

    Actualeyes

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,519
    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


    This is more about code organization as the filesystem should follow your class names exactly (case sensitive).

    Lets say we are making an email program with an email list screen, a contact list screen and a compose screen. You could organize your code like this (class names):

    Email.view.email.List
    Email.view.contact.List
    Email.view.compose.Form

    Then your filesystem for these would be like:

    /app
    --/view
    ----/compose
    ------Form.js
    ----/contact
    ------List.js
    ----/email
    ------List.js
    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.

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    7
    Vote Rating
    0
    actualeyes is on a distinguished road

      0  

    Default


    Actually it's a bit different of a problem. So the source files are mapped to servername/static. However, I am getting 404s because the library files are being requested at the servername/beta/advertiser/ which is the root of this particular application. How do I get the libraries to be requested at servername/static?

    Thanks again,

    Actualeyes

  4. #4
    Sencha User
    Join Date
    Dec 2011
    Posts
    7
    Vote Rating
    0
    actualeyes is on a distinguished road

      0  

    Default


    Okay, I have been looking at this problem a little more and can articulate it better. My problem is that my libraries do not map to a subdirectory of the url that is called.

    So if I have the url mapped to /x/y/z/application,
    but my static files are mapped to /static/x/y/z/application how can I get the libraries included.

    It appears that ExtJS just assumes that my javascript files are mapped to a subdirectory of the outward url. . .

    -Actualeyes

  5. #5
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,477
    Answers
    523
    Vote Rating
    280
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    If I've understood your question correctly, perhaps these might help?

    http://docs.sencha.com/ext-js/4-0/#!...thod-setConfig
    http://docs.sencha.com/ext-js/4-0/#!...method-setPath

    You can use them to specify exactly which URL (absolute or relative) is the root URL for a particular package.

Thread Participants: 2