View Full Version : Nube Sauce

22 Apr 2012, 7:33 AM
I don't understand the MVC framework ...

I'm supposed to have a directory called ExtJS within my web application directory? ExtJS is 210 megabytes... so, to say "Hello World" I need 210 megabytes of code? For every single ExtJS application?


I think this is the production application - after using the ExtJS SDK to minimize the code base.

But ... that document refers to this document:
And this document shows the entire ExtJS SDK in the application directory structure. How else could you build an application?

Does it make more sense to simply do:

<link rel="stylesheet" type="text/css" href="/extjs/resources/css/ext-all.css">
<script type="text/javascript" src="/extjs/ext-all-debug.js"></script>
<link rel="stylesheet" href="resources/style.css" type="text/css">
<script type="text/javascript" src="app.js"></script>

I'm just installing the ExtJS code into a root web directory called extjs. Then referencing that code by using "/extjs" - rather than copying 210 megabytes of core files into each application directory. Then there is no need for the SDK tools or copying the core files.

Will this work? Where am I going to get beat up?

I'm actually working with the ExtJS 4.1.0 RC3 beta

23 Apr 2012, 6:02 AM
You code snippet is fine. All you need are
ext-all.js, (all classes, grid, etc)
... or ext.js (Ext core) MVC and Loader
app.js // your app.

The MVC pattern is simply to organize your code.


27 Apr 2012, 9:28 AM
Was concerned mainly about the deployment aspects. I just started looking at jBuilder and the SDK Tools 2.0.

So I guess I'm OK.