Changeset View
Changeset View
Standalone View
Standalone View
src/docs/contributor/phabricator_code_layout.diviner
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
(The following two folders are also likely to be included for JavaScript and | (The following two folders are also likely to be included for JavaScript and | ||||
CSS respectively. However, static resources are largely outside the scope of | CSS respectively. However, static resources are largely outside the scope of | ||||
this document. See @{article:Adding New CSS and JS}.) | this document. See @{article:Adding New CSS and JS}.) | ||||
phabricator/webroot/rsrc/js/application/derp/ | phabricator/webroot/rsrc/js/application/derp/ | ||||
phabricator/webroot/rsrc/css/application/derp/ | phabricator/webroot/rsrc/css/application/derp/ | ||||
These directories under `phabricator/src/applications/derp/` represent | These directories under `phabricator/src/applications/derp/` represent | ||||
the basic set of class types from which most Phabrictor applications are | the basic set of class types from which most Phabricator applications are | ||||
assembled. Each would contain a class file. For `Derp`, these classes could be | assembled. Each would contain a class file. For `Derp`, these classes could be | ||||
something like: | something like: | ||||
- **DerpConstants**: constants used in the `Derp` application. | - **DerpConstants**: constants used in the `Derp` application. | ||||
- **DerpController**: business logic providing functionality for a given | - **DerpController**: business logic providing functionality for a given | ||||
URI. Typically, controllers load data via Storage or Query classes, then | URI. Typically, controllers load data via Storage or Query classes, then | ||||
present the data to the user via one or more View classes. | present the data to the user via one or more View classes. | ||||
- **DerpEditor**: business logic for workflows that change one or more | - **DerpEditor**: business logic for workflows that change one or more | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |