Core application components: Yii predefines a series of core application components to provide functions used in common Web applications. For example, the request component is used to parse user requests and provide information such as URLs and cookies. By configuring the attributes of these core components, we can modify the default behavior of Yii almost arbitrarily. The Core Components predefined by CWebApplication are listed below. AssetManager: CAssetManager-manage the publishing of private resource files. AuthManager: CAuthManager-manage role-based access control (RBAC). cache: CCache-provides the data cache function. Note: You must specify the actual class (such as CMemCache and CDbCache ). Otherwise, NULL is returned when you access this component. ClientScript: CClientScript-manage client scripts (javascripts and CSS). coreMessages: CPhpMessageSource-Provides translation of core information used by the Yii framework. Db: CDbConnection-provides database connection. Note: To use this component, you must configure its connectionString attribute. ErrorHandler: CErrorHandler-handle uncaptured PHP errors and exceptions. Format: CFormatter-format the value display. This function is available from version 1.1.0. Messages: CPhpMessageSource-Provides information translation for Yii applications. Request: CHttpRequest-provides information about user requests. SecurityManager: CSecurityManager-Provides security-related services, such as hash and encryption. Session: CHttpSession-Provides session-related functions. StatePersister: CStatePersister-provides a global state persistence method. UrlManager: CUrlManager-Provides URL parsing and creation functions. user: CWebUser-provides recognition information for the current user. Themanager: CThemeManager-manage topics. To access an application component, use the Yii: app ()-> component ID