0

I have an ExtJS 4 project using MVC architecture.

The server URL to the project is http://myServer/myProject, but ExtJS is ignoring the project name, giving me a 404 error (cannot find http://myServer/app/view/Viewport.js)

How do I tell ExtJS to prepend the project name before the URL paths?

4

1 回答 1

1

您可以使用 app 文件夹属性让它知道从哪里开始查找您的文件:

Ext.application({
   name:'MyExtApp',
   appFolder:'js/MyApp/app',
...
于 2013-10-03T18:43:24.097 回答