MVC paths in Extjs

Posted by Oleg on Stack Overflow See other posts from Stack Overflow or by Oleg
Published on 2012-10-08T10:16:20Z Indexed on 2012/10/08 21:37 UTC
Read the original article Hit count: 293

Filed under:
|
|

I have got a ExtJs application (MVC).

So, I define many controllers, models, views and stores. At now, the structure of my project is not easy.

For example my model:

Ext.define('KP.model.account.AccountList', {

    extend: 'Ext.data.Model',
    fields: ['parameter', 'string_value']

});

I define my store with model like this:

Ext.define('KP.store.account.AccountList', {
    extend: 'Ext.data.Store',

    alias: 'store.s_AccountList',

    model: 'KP.model.account.AccountList',
    ......................................
});

If I want to move some .js files, I must rewrite many paths in classes definitions. So, how can I declare my classes (by alias maybe) and use them more effectively? It's need, If I move files on files tree. Thanks!

© Stack Overflow or respective owner

Related posts about extjs

Related posts about path