This is the storage of all your data related only to the backend side of the website.
Backend is meant to be the administrator's area, holding the various editor tools and with restricted access.
Structure of this folder is the same as of
frontend one, and is based on the traditional
from the project skeleton generated by Yii console tools.
backend/www is the web root of the backend, which should be published by your web server.
Table of Contents
All of the
CApplicationComponentdescendants registered under
componentssection of config. Usually descendants of
CUserIdentityend up here, too.
Pieces of configuration overrides relevant only to backend are there.
All of the
CControllerdescendants are intended to be placed here. Note that usually base
Controllerclass ends up in
All of Yii extensions you want to be explicitly associated with website backend. No restriction of usage is enforced, you still can import classes from here to any other entry point like frontend.
CModeldescendants which should be visible in backend entry point only. Usually all of helper classes and business domain objects end up here, too.
This is the directory for modules inside the backend.
Packages of CSS&JS assets to easily include them into backend layout using
CClientScript.register*methods. Initially in YiiBooster inside this folder lies the package for the backend-specific styles describing its design.
Yii requires this folder to hold some temporary files used while running.
backend/runtimeis used only by the backend entry point.
View files for controllers. Structure is the same as in traditional
protectedfolder: for each controller ID there should be a subfolder with all view files for this controller.
CWidgetdescendants intended to be associated with backend. As with
extensionsfolder, no real usage restriction is enforced, you are free to reference this widgets from frontend, too.
Web root of the backend entry point. You publish this folder using your web server to make the backend accessible from Web. Anything inside
wwwis intended to be directly publicly visible by visitors.