Im making a Zend Framework MVC application using the standard Zend MVC structure and I wanted to know where I should be putting my client-side ExtJS javascript, not the library but my js files.
ExtJS and Zend Framework MVC
1.8k views Asked by flyboarder At
3
There are 3 answers
0
![MarkOfSine](/img/user-default.png)
Current version of Zend(1.11) has a suggested site layout as per:
{project}/
application/
configs/
application.ini
modules/
{news}/ # example module
controllers/
models/
views/
Bootstrap.php
library/
public/
index.php
{ All other public files also go here. eg: }
js/
jquery library
extjs library
prototype, moo, etc...
css/
blueprint
960
etc...
images/
home.jpg
etc...
templates/
Essentially any file that needs to be served directly by the webserver and not via the Zend framework, should be placed within your ./{project}/public
directory.
Zend Framework MVC layout
The suggested Zend Framework module file structure layout
Client side images, javascript, flash, etc should be left within the doc root folder. The reason behind this is because you should not be passing images/javascript/etc through your bootstrap. Doing that adds increased server side processing and lengths load times.
To follow the module layout of this example something like this works well.