Below we list the core components that are pre-declared byCWebApplication.
-
assetManager: CAssetManager -manages the publishing of private asset files.
-
authManager: CAuthManager - manages role-based access control (RBAC).
-
cache: CCache - provides data cachingfunctionality. Note, you must specify the actual class (e.g.CMemCache, CDbCache). Otherwise, null will be returned when youaccess this component.
-
clientScript: CClientScript -manages client scripts (javascripts and CSS).
-
coreMessages: CPhpMessageSource -provides translated core messages used by Yii framework.
-
db: CDbConnection - provides the databaseconnection. Note, you must configure itsconnectionString property in orderto use this component.
-
errorHandler: CErrorHandler - handlesuncaught PHP errors and exceptions.
-
format: CFormatter - formats data valuesfor display purpose. This has been available since version 1.1.0.
-
messages: CPhpMessageSource - providestranslated messaged used by Yii application.
-
request: CHttpRequest - providesinformation related with user requests.
-
securityManager: CSecurityManager -provides security-related services, such as hashing, encryption.
-
session: CHttpSession - providessession-related functionalities.
-
statePersister: CStatePersister -provides global state persistence method.
-
urlManager: CUrlManager - providesURL parsing and creation functionality.
-
user: CWebUser - represents the identityinformation of the current user.
-
themeManager: CThemeManager - manages themes.