0% found this document useful (0 votes)
91 views

Root Tree Structure Application Tree Structure Module Tree Structure

The Symfony framework uses a tree structure with directories for applications, modules, and general project components. The root contains directories for applications, cache, configuration, data, and libraries. Applications contain configuration, internationalization files, and module-specific classes and libraries. Modules contain actions, configuration, templates, and validation files. The web directory contains front-end assets accessible to users.

Uploaded by

juanmdq
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views

Root Tree Structure Application Tree Structure Module Tree Structure

The Symfony framework uses a tree structure with directories for applications, modules, and general project components. The root contains directories for applications, cache, configuration, data, and libraries. Applications contain configuration, internationalization files, and module-specific classes and libraries. Modules contain actions, configuration, templates, and validation files. The web directory contains front-end assets accessible to users.

Uploaded by

juanmdq
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

SYMFONY TREE STRUCTURE

Root tree structure


apps/ foo/ boo/ batch/ cache/ config/ data/ sql/ Contains one directory for each application of the project. Used for php files called from a command line or a scheduler. The cache of the project. One subdirectory per apps. General configuration of the project. Here you can store the data files of the project (database schema, SQL file, or a SQLite database). Custom documents and phpdoc generated api docs. Dedicated to foreign classes or libraries shared among your applications. The model subdirectory stores the object model of the project. Log files generated by symfony. There is normally one file per application and per environment. Unit tests written in PHP. Symfony automatically adds some stubs with a few basic tests. The web directory is the root for the web server. The only files accessible from the Internet are the ones located in this directory. lib/

Application tree structure


config/ i18n/ This is where most of the application configuration is. Files used for the internationalization of the application (XLIFF or GetText). Not used if doint i18n in database. Contains classes and libraries that are specific to the application. Modules that contain the features of the application.

Module tree structure


actions/ Contains all the actions.class.php actions of the module. In a single file or in several. config/ lib/ templates/ indexSuccess.php validate/ Local parameters for the module. Classes and libraries specific to the module. Templates corresponding to the actions of the module. Configuration files used for form validation.

modules/

doc/ api/ lib/ model/

templates/ Global templates of the layout.php application, the ones that are error.php shared by all modules. error.txt

The directories config, lib and validate are empty for a new module.

The directories i18n, lib and modules are empty for a new application.

log/

test/

web/ css/ images/ js/ uploads/

You might also like