views:

80

answers:

2

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.

A: 

Zend Framework MVC layout

The suggested Zend Framework module file structure layout

docroot/
    index.php
application/
    default/
        controllers/
            IndexController.php
            FooController.php
        models/
        views/
            scripts/
                index/
                foo/
            helpers/
            filters/
    blog/
        controllers/
            IndexController.php
        models/
        views/
            scripts/
                index/
            helpers/
            filters/
    news/
        controllers/
            IndexController.php
            ListController.php
        models/
        views/
            scripts/
                index/
                list/
            helpers/
            filters/

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.

docroot/
    default/
        images/
        js/
        css/
        etc/
    blog/
        images/
        js/
        css/
        etc/
    news/
        images/
        js/
        css/
        etc/
    index.php
David Young
A: 

Like all your static files, in public folder.

Maxence