Symfony2 MVC and ExtJS4 MVC

Can someone explain to me the correct file structure of the Symfony2 MVC project and ExtJS4 MVC project? (When used together!)

+5
source share
2 answers

Your ExtJS files should be placed in the Resource / public folder of your package

YourBundle/
  Resources/
    public/
      images/
      css/
      js/
        extjs/
        app/

You can use assets: install a command line command for subsequent installation in a web folder. You can use the Assetic, which is included in the Symfony Standard Edition, to take care of your JS files.

+5
source

" " " Symfony" Symfony. :

- (- symfony) . , , JavaScript . - - , - .

, ExtJS web/. , :

web/
  css/
  images/
  js/
    extjs/   --> ExtJs Library
    app/     --> ExtJs MVC application
  uploads/

app ExtJS MVC. MVC Architecture ExtJS MVC.

+1

All Articles