Search code examples
extjsmodelstoreattachmentsencha-architect

How can I call the model attached to the store in Extjs


I have a simple problem in extjs, I don't know how to solve it.

The Problem this:

For example: var store = Ext.getStore('myproject.store.City');

this simple method.

I want to do same for the model

For example: var model = Ext.getModel('myproject.model.City')

But this doesn't work.

How can I call the model attached to the store?


Solution

  • I found the solution it.

    Following The Code:var model = Ext.create('myproject.model.City')