PDA

View Full Version : Nube Sauce



Ghostly
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?

http://docs.sencha.com/ext-js/4-0/#!/guide/application_architecture

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

But ... that document refers to this document:
http://localhost/extjs-4.1.0-rc3/docs/#/guide/getting_started
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:

<code>
<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>
</code>

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

scottmartin
23 Apr 2012, 6:02 AM
You code snippet is fine. All you need are
ext-all.css
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.

Regards,
Scott.

Ghostly
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.