PDA

View Full Version : Ext4 MVC - Where to place ux??



romerve
1 May 2012, 11:23 AM
Hello,

I am having troubles using the SearchField.js UX. Is it supposed to be in Ext/ux/SearchField.js? Or within my app folder?

I keep getting 404 errors about (NOT FOUND) when trying to use the extension.

Any ideas?

Thanks.

scottmartin
1 May 2012, 12:11 PM
This is basically up to you .. examples:

app/ux (yours)
app/ext/ux (Ext ux)

just update your paths : { <path> }

Regards,
Scott.

romerve
2 May 2012, 7:05 AM
Oh i see, i totally missed the configs for Ext.Loader.

So i would just do something like:


Ext.Loader.setConfig({ enabled:true, paths: { 'ux': 'ux/' }});

And then just use it like:


Ext.define('Que.view.Quesearch',{ extend: 'ux.SearchField', alias: 'widget.quesearch',
......

Correct?

Thanks

scottmartin
2 May 2012, 7:17 AM
Yes sir.

Scott.