Where do proxies go in MVC structure?

Where do proxies go in MVC structure?

Where do proxies go in the MVC structure? Do they get automatically loaded like controllers, views, models, stores, etc... ?

BTW - From looking at the Kiva example, it appears that custom proxies are manually configured but I really don't understand it. Specifically, I don't understand why the proxy definition/class is in lib/KivaProxy.js. I would think it would be in something like proxy/Kiva.js and that the model would reference it. Can someone please explain?

Proxies are defined directly on the Model or the Store 99% of the time. This is why we don't have a proxy folder. Kiva is an exception as it had to create a customized proxy. It might be worth looking into if it turns out many people are creating custom proxies.

Can I ask you what you need a custom proxy for in your app? Do you need a custom proxy, or where you just wondering where you had to define your proxies? If its the latter, then the answer is in your model or store definition.

I'm using PhoneGap and want to load contacts from the address book into a store.

Originally Posted by TommyMaintz

Proxies are defined directly on the Model or the Store 99% of the time. This is why we don't have a proxy folder. Kiva is an exception as it had to create a customized proxy. It might be worth looking into if it turns out many people are creating custom proxies.

Can I ask you what you need a custom proxy for in your app? Do you need a custom proxy, or where you just wondering where you had to define your proxies? If its the latter, then the answer is in your model or store definition.

I see, yes in that case you would want to create a custom proxy I will discuss this with the team, and see if it's something we can add in one of the upcoming releases. I'm moving this into the bug forum and opening a ticket for it.

I see, yes in that case you would want to create a custom proxy I will discuss this with the team, and see if it's something we can add in one of the upcoming releases. I'm moving this into the bug forum and opening a ticket for it.