Home >Backend Development >PHP Tutorial >Yii PHP framework version 2
Yii PHP Framework Version 2 ¶
This is the core framework code of Yii 2.
This repository is a child of https://github.com/yiisoft/yii2 Project, please submit issue reports and pull requests to the main repository. Please consult the LICENSE document for licensing information.
Installation ¶
It is recommended to install the Yii framework through composer.
Run
composer global <strong>require</strong> "fxp/composer-asset-plugin:~1.0.0"<span>composer <strong>require</strong> yiisoft</span>/yii2
or add
"yiisoft/yii2": "~2.0.0",
to the require section of composer.json.
Class Reference
Class | Description |
---|---|
Yii | Yii is a helper class that serves common framework functions. |
yiiBaseYii | BaseYii is the core helper class of Yii framework. |
yiibaseAction | Action is the base class for all controller action classes. |
yiibaseActionEvent | ActionEvent is used to represent the event parameters of an action event. |
yiibaseActionFilter | ActionFilter is the base class of action filters. |
yiibaseApplication | Application is the base class for all application classes. |
yiibaseArrayAccessTrait | ArrayAccessTrait provides implementations for IteratorAggregate, ArrayAccess and Countable. |
yiibaseArrayable | Arrayable is the interface that should be implemented by classes who want to support customizable representation of their instances. |
yiibaseBehavior | Behavior is the base class for all behavior classes. |
yiibase | BootstrapInterface |
Interface is the interface that should be implemented by classes who want to participate in the Application | Bootstrapprocess.yiibaseComponent Component is the base class that implements the | property
and | behaviorfeatures.yiibaseConfigurableConfigurable is the interface that should be implemented by classes who support configuring its properties through the last parameter to its constructor. yiibaseController |
yiibaseDynamicModel | |
yiibaseError | Exception|
Error | Exceptionrepresents a PHP error. |
yiibaseErrorHandlerErrorHandler handles uncaught PHP errors and exceptions. | yiibaseEvent |
yiibase | Exception|
Exception | represents a common exception for all problems. |
yiibaseExitException | ExitException represents the normal termination of an application. |
yiibaseInlineActionInlineAction represents an action defined as a controller method. | yiibaseInvalidCall | Exception
InvalidCall | Exceptionrepresents an exception caused by calling a method in the wrong way. |
yiibaseInvalidConfigException | InvalidConfigException represents an exception caused by incorrect object configuration. |
yiibaseInvalidParamException | InvalidParamException represents an exception caused by an invalid function passed into a method. |
yiibaseInvalidRouteException | InvalidRouteException represents an exception caused by an invalid route. . |
yiibaseInvalidValueException | InvalidValueException represents an exception caused by a function returning a value of an unexpected type. |
yiibaseModelModel is the base class of the data model. | yiibaseModelEvent |
yiibaseModule | |
yiibaseNotSupported | Exception|
NotSupported | ExceptionRepresents an exception caused by accessing unsupported functionality. |
yiibaseObjectObject is the base class that implements the | propertyfeature. |
Request represents a request object processed by yiibase | Application. |
Response represents the response of an yiibase | Applicationto a yiibaseRequest. |
Security provides a set of methods to handle common security-related tasks. | yiibaseTheme |
yiibaseUnknownClass | Exception|
UnknownClass | Exceptionrepresents an exception caused by using an unknown class. |
yiibaseUnknownMethodException | UnknownMethodException represents an Exception caused by accessing an unknown object method. |
yiibaseUnknownPropertyException | Un knownPropertyException represents an Exception caused by accessing unknown object properties. |
yiibaseUserException | UserException is the base class for exceptions that will be displayed to the end user. |
yiibaseView | View represents the view object in MVC mode. |
yiibaseViewContextInterface | ViewContextInterface is the interface that should be implemented by classes who want to support relative view names. |
yiibaseViewEvent | ViewEvent represents an event triggered by the yiibaseView component. |
yiibaseViewRenderer | ViewRenderer is the base class of the view rendering class. |
yiibaseWidget | Widget is the base class of plugin class. |
yiibehaviorsAttributeBehavior | AttributeBehavior automatically assigns a specified value to one or multiple attributes of an ActiveRecord object when certain events happen. |
yiibehaviorsBlameableBehavior | BlameableBehavior automatically fills the specified attributes with the current user ID. |
yiibehaviorsSluggableBehavior | SluggableBehavior automatically fills the specified attributes with a value that can be used a slug in a URL. |
yiibehaviorsTimestampBehavior | TimestampBehavior automatically fills the specified attributes with the current timestamp. ApcCache |
component. | yiicachingArrayCache |
yiicachingCache | |
chainedDependency represents a dependency which is composed of a list of other dependencies. | |
yiicachingDbCache implements a cache | Applicationcomponent by storing cached data in a database. |
yiicachingDbDependency | DbDependency represents a dependency based on the query result of a SQL statement. |
Dependency is the base class for cache dependency classes. DummyCache is a placeholder cache component. | |
ExpressionDependency represents a dependency based on the result of a PHP expression. | |
FileCache implements a cache component using files. | FileDependency represents a dependency based on a file's last modification time. |
yiicachingMemCache | MemCache implements a cache | Application
yiicachingMemCacheServer | |
yiicachingTagDependency | |
component. | yiicachingZendDataCache |
component. | |
Captcha displays a verification code image and receives the verification code entered by the user Input box . | |
CaptchaAction displays a verification code image. | |
yiicaptchaCaptchaAsset | This asset bundle provides the javascript files needed for the yiicaptchaCaptcha widget. |
yiicaptchaCaptchaValidator | CaptchaValidator validates that the attribute value is the same as the verification code displayed in the CAPTCHA. |
yiiconsoleApplication | Application represents a console Application. |
yiiconsoleController | Controller is the base class of console command classes. |
yiiconsoleErrorHandler | ErrorHandler handles uncaught PHP errors and Exceptions. |
yiiconsoleException | Exception represents an Exception caused by incorrect usage of a console command. |
yiiconsoleMarkdown | A Markdown parser that enhances markdown for reading in console environments. |
yiiconsoleRequest | The console Request represents the environment information for a console Application. |
yiiconsoleResponse | The console Response represents the result of a console Application. |
yiiconsolecontrollersAssetController | Allows you to combine and compress your JavaScript and CSS files. |
yiiconsolecontrollersBaseMigrateController | BaseMigrateController is base class for migrate controllers. |
yiiconsolecontrollersCacheController | 允许你来刷新缓存。 |
yiiconsolecontrollersFixtureController | Manages fixture data loading and unloading. |
yiiconsolecontrollersHelpController | 提供关于控制台命令的错误信息。 |
yiiconsolecontrollersMessageController | Extracts messages to be translated from source files. |
yiiconsolecontrollersMigrateController | Manages Application migrations. |
yiidataActiveDataProvider | ActiveDataProvider implements a data provider based on yiidbQuery and yiidbActiveQuery. |
yiidataArrayDataProvider | ArrayDataProvider implements a data provider based on a data array. |
yiidataBaseDataProvider | BaseDataProvider provides a base class that implements the yiidataDataProviderInterface. |
yiidataDataProviderInterface | DataProviderInterface is the interface that must be implemented by data provider classes. |
yiidataPagination | Pagination represents information relevant to pagination of data items. |
yiidataSort | Sort represents information relevant to sorting. |
yiidataSqlDataProvider | SqlDataProvider implements a data provider based on a plain SQL statement. |
yiidbActiveQuery | ActiveQuery represents a DB query associated with an Active Record class. |
yiidbActiveQueryInterface | ActiveQueryInterface defines the common interface to be implemented by active record query classes. |
yiidbActiveQueryTrait | ActiveQueryTrait implements the common methods and properties for active record query classes. |
yiidbActiveRecord | ActiveRecord is the base class for classes representing relational data in terms of objects. |
yiidbActiveRecordInterface | ActiveRecordInterface |
yiidbActiveRelationTrait | ActiveRelationTrait implements the common methods and properties for active record relational queries. |
yiidbAfterSaveEvent | AfterSaveEvent represents the information available in yiidbActiveRecord::EVENT_AFTER_INSERT and yiidbActiveRecord::EVENT_AFTER_UPDATE. |
yiidbBaseActiveRecord | ActiveRecord is the base class for classes representing relational data in terms of objects. |
yiidbBatchQueryResult | BatchQueryResult represents a batch query from which you can retrieve data in batches. |
yiidbColumnSchema | ColumnSchema class describes the metadata of a column in a database table. |
yiidbColumnSchemaBuilder | ColumnSchemaBuilder helps to define database schema types using a PHP interface. |
yiidbCommand | Command represents a SQL statement to be executed against a database. |
yiidbConnection | Connection represents a connection to a database via PDO. |
yiidbDataReader | DataReader represents a forward-only stream of rows from a query result set. |
yiidbException | Exception represents an Exception that is caused by some DB-related operations. |
yiidbExpression | Expression represents a DB expression that does not need escaping or quoting. |
yiidbIntegrityException | Exception represents an Exception that is caused by violation of DB constraints. |
yiidbMigration | Migration is the base class for representing a database migration. |
yiidbMigrationInterface | The MigrationInterface defines the minimum set of methods to be implemented by a database migration. |
yiidbQuery | Query represents a SELECT SQL statement in a way that is independent of DBMS. |
yiidbQueryBuilder | QueryBuilder builds a SELECT SQL statement based on the specification given as a yiidbQuery object. |
yiidbQueryInterface | The QueryInterface defines the minimum set of methods to be implemented by a database query. |
yiidbQueryTrait | The BaseQuery trait represents the minimum method set of a database Query. |
yiidbSchema | Schema is the base class for concrete DBMS-specific schema classes. |
yiidbSchemaBuilderTrait | SchemaBuilderTrait contains shortcut methods to create instances of yiidbColumnSchemaBuilder. |
yiidbStaleObjectException | |
yiidbTableSchema | TableSchema represents the metadata of a database table. |
yiidbTransaction | Transaction 表示一个数据库事务。 |
yiidbcubridQueryBuilder | QueryBuilder is the query builder for CUBRID databases (version 9.3.x and higher). |
yiidbcubridSchema | Schema is the class for retrieving metadata from a CUBRID database (version 9.3.x and higher). |
yiidbmssqlPDO | This is an extension of the default PDO class of MSSQL and DBLIB drivers. |
yiidbmssqlQueryBuilder | QueryBuilder is the query builder for MS SQL Server databases (version 2008 and above). |
yiidbmssqlSchema | Schema is the class for retrieving metadata from a MS SQL Server databases (version 2008 and above). |
yiidbmssqlSqlsrvPDO | This is an extension of the default PDO class of SQLSRV driver. |
yiidbmssqlTableSchema | TableSchema represents the metadata of a database table. |
yiidbmysqlQueryBuilder | QueryBuilder 是MySQL数据库的查询构建器。 |
yiidbmysqlSchema | Schema is the class for retrieving metadata from a MySQL database (version 4.1.x and 5.x). |
yiidbociColumnSchemaBuilder | ColumnSchemaBuilder is the schema builder for Oracle databases. |
yiidbociQueryBuilder | QueryBuilder is the query builder for Oracle databases. |
yiidbociSchema | Schema is the class for retrieving metadata from an Oracle database |
yiidbpgsqlQueryBuilder | QueryBuilder is the query builder for PostgreSQL databases. |
yiidbpgsqlSchema | Schema is the class for retrieving metadata from a PostgreSQL database (version 9.x and above). |
yiidbsqliteQueryBuilder | QueryBuilder is the query builder for SQLite databases. |
yiidbsqliteSchema | Schema is the class for retrieving metadata from a SQLite (2/3) database. |
yiidiContainer | Container implements a dependency injection container. |
yiidiInstance | Instance represents a reference to a named object in a dependency injection (DI) container or a service locator. |
yiidiServiceLocator | ServiceLocator 实现了一个服务定位器。 |
yii\filters\AccessControl | AccessControl provides simple access control based on a set of rules. |
yii\filters\AccessRule | This class represents an access rule defined by the yii\filters\AccessControl action filter |
yii\filters\ContentNegotiator | ContentNegotiator supports response format negotiation and Application language negotiation. |
yii\filters\Cors | Cors filter implements Cross Origin Resource Sharing. |
yii\filters\HttpCache | HttpCache implements client-side caching by utilizing the Last-Modified and Etag HTTP headers. |
yii\filters\PageCache | PageCache implements server-side caching of whole pages. |
yii\filters\RateLimitInterface | RateLimitInterface is the interface that may be implemented by an identity object to enforce rate limiting. |
yii\filters\RateLimiter | RateLimiter implements a rate limiting algorithm based on the leaky bucket algorithm. |
yii\filters\VerbFilter | VerbFilter is an action filter that filters by HTTP request methods. |
yii\filters\auth\AuthInterface | AuthInterface is the interface that should be implemented by auth method classes. |
yii\filters\auth\AuthMethod | AuthMethod is a base class implementing the yii\filters\auth\AuthInterface interface. |
yii\filters\auth\CompositeAuth | CompositeAuth is an action filter that supports multiple authentication methods at the same time. |
yii\filters\auth\HttpBasicAuth | HttpBasicAuth is an action filter that supports the HTTP Basic authentication method. |
yii\filters\auth\HttpBearerAuth | HttpBearerAuth is an action filter that supports the authentication method based on HTTP Bearer token. |
yii\filters\auth\QueryParamAuth | QueryParamAuth is an action filter that supports the authentication based on the access token passed through a query parameter. |
yii\grid\ActionColumn | ActionColumn is a column for the yii\grid\GridView widget that displays buttons for viewing and manipulating the items. |
yii\grid\CheckboxColumn | CheckboxColumn displays a column of checkboxes in a grid view. |
yii\grid\Column | Column is the base class of all yii\grid\GridView column classes. |
yii\grid\DataColumn | DataColumn is the default column type for the yii\grid\GridView widget. |
yii\grid\GridView | The GridView widget is used to display data in a grid. |
yii\grid\GridViewAsset | This asset bundle provides the javascript files for the yii\grid\GridView widget. |
yii\grid\SerialColumn | SerialColumn displays a column of row numbers (1-based). |
yii\helpers\ArrayHelper | ArrayHelper provides additional array functionality that you can use in your Application. |
yiihelpersBaseArrayHelper | BaseArrayHelper provides concrete implementation for yiihelpersArrayHelper. |
yiihelpersBaseConsole | BaseConsole provides concrete implementation for yiihelpersConsole. |
yiihelpersBaseFileHelper | BaseFileHelper provides concrete implementation for yiihelpersFileHelper. |
yiihelpersBaseFormatConverter | BaseFormatConverter provides concrete implementation for yiihelpersFormatConverter. |
yiihelpersBaseHtml | BaseHtml provides concrete implementation for yiihelpersHtml. |
yiihelpersBaseHtmlPurifier | BaseHtmlPurifier provides concrete implementation for yiihelpersHtmlPurifier. |
yiihelpersBaseInflector | BaseInflector provides concrete implementation for yiihelpersInflector. |
yiihelpersBaseJson | BaseJson provides concrete implementation for yiihelpersJson. |
yiihelpersBaseMarkdown | BaseMarkdown provides concrete implementation for yiihelpersMarkdown. |
yiihelpersBaseStringHelper | BaseStringHelper provides concrete implementation for yiihelpersStringHelper. |
yiihelpersBaseUrl | BaseUrl provides concrete implementation for yiihelpersUrl. |
yiihelpersBaseVarDumper | BaseVarDumper provides concrete implementation for yiihelpersVarDumper. |
yiihelpersConsole | Console helper provides useful methods for command line related tasks such as getting input or formatting and coloring output. |
yiihelpersFileHelper | File system helper |
yiihelpersFormatConverter | FormatConverter provides functionality to convert between different formatting pattern formats. |
yiihelpersHtml | Html provides a set of static methods for generating commonly used HTML tags. |
yiihelpersHtmlPurifier | HtmlPurifier provides an ability to clean up HTML from any harmful code. |
yiihelpersInflector | Inflector pluralizes and singularizes English nouns. It also contains some other useful methods. |
yiihelpersJson | Json is a helper class providing JSON data encoding and decoding. |
yiihelpersMarkdown | Markdown provides an ability to transform markdown into HTML. |
yiihelpersStringHelper | StringHelper |
yiihelpersUrl | Url provides a set of static methods for managing URLs. |
yiihelpersVarDumper | VarDumper is intended to replace the buggy PHP function var_dump and print_r. |
yiii18nDbMessageSource | DbMessageSource extends yiii18nMessageSource and represents a message source that stores translated messages in database. |
yiii18nFormatter | Formatter provides a set of commonly used data formatting methods. |
yiii18nGettextFile | GettextFile is the base class for representing a Gettext message file. |
yiii18nGettextMessageSource | GettextMessageSource represents a message source that is based on GNU Gettext. |
yiii18nGettextMoFile | GettextMoFile represents an MO Gettext message file. |
yiii18nGettextPoFile | GettextPoFile represents a PO Gettext message file. |
yiii18nI18N | I18N provides features related with internationalization (I18N) and localization (L10N). |
yiii18nMessageFormatter | MessageFormatter allows formatting messages via ICU message format |
yiii18nMessageSource | MessageSource is the base class for message translation repository classes. |
yiii18nMissingTranslationEvent | MissingTranslationEvent represents the parameter for the yiii18nMessageSource::EVENT_MISSING_TRANSLATION event. |
yiii18nPhpMessageSource | PhpMessageSource represents a message source that stores translated messages in PHP scripts. |
yiilogDbTarget | DbTarget stores log messages in a database table. |
yiilogDispatcher | Dispatcher manages a set of log targets. |
yiilogEmailTarget | EmailTarget sends selected log messages to the specified email addresses. |
yiilogFileTarget | FileTarget records log messages in a file. |
yiilogLogger | Logger records logged messages in memory and sends them to different targets if $dispatcher is set. |
yiilogSyslogTarget | SyslogTarget writes log to syslog. |
yiilogTarget | Target is the base class for all log target classes. |
yii\mail\BaseMailer | BaseMailer serves as a base class that implements the basic functions required by yii\mail\MailerInterface. |
yii\mail\BaseMessage | BaseMessage serves as a base class that implements the send() method required by yiimailMessageInterface. |
yiimailMailEvent | MailEvent represents the event parameter used for events triggered by yiimailBaseMailer. |
yiimailMailerInterface | MailerInterface is the interface that should be implemented by mailer classes. |
yiimailMessageInterface | MessageInterface is the interface that should be implemented by mail message classes. |
yiimutexDbMutex | DbMutex is the base class for classes, which relies on database while implementing mutex "lock" mechanism. |
yiimutexFileMutex | FileMutex implements mutex "lock" mechanism via local file system files. |
yiimutexMutex | Mutex component allows mutual execution of the concurrent processes, preventing "race conditions". |
yiimutexMysqlMutex | MysqlMutex implements mutex "lock" mechanism via MySQL locks. |
yiirbacAssignment | Assignment represents an assignment of a role to a user. |
yiirbacBaseManager | BaseManager is a base class implementing yiirbacManagerInterface for RBAC management. |
yiirbacDbManager | DbManager represents an authorization manager that stores authorization information in database. |
yiirbacItem | |
yiirbacManagerInterface | |
yiirbacPermission | |
yiirbacPhpManager | PhpManager represents an authorization manager that stores authorization information in terms of a PHP script file. |
yiirbacRole | |
yiirbacRule | Rule represents a business constraint that may be associated with a role, permission or assignment. |
yiirestAction | Action is the base class for action classes that implement RESTful API. |
yiirestActiveController | ActiveController implements a common set of actions for supporting RESTful access to ActiveRecord. |
yiirestController | Controller is the base class for RESTful API controller classes. |
yiirestCreateAction | CreateAction implements the API endpoint for creating a new model from the given data. |
yiirestDeleteAction | DeleteAction implements the API endpoint for deleting a model. |
yiirestIndexAction | |
yiirestOptionsAction | OptionsAction responds to the OPTIONS request by sending back an Allow header. |
yiirestSerializer | Serializer converts resource objects and collections into array representation. |
yiirestUpdateAction | UpdateAction implements the API endpoint for updating a model. |
yiirestUrlRule | UrlRule is provided to simplify the creation of URL rules for RESTful API support. |
yiirestViewAction | ViewAction implements the API endpoint for returning the detailed information about a model. |
yiitestActiveFixture | ActiveFixture represents a fixture backed up by a ActiveRecord class or a database table. |
yiitestArrayFixture | ArrayFixture represents arbitrary fixture that can be loaded from PHP files. |
yiitestBaseActiveFixture | BaseActiveFixture is the base class for fixture classes that support accessing fixture data as ActiveRecord objects. |
yiitestDbFixture | DbFixture is the base class for DB-related fixtures. |
yiitestFixture | Fixture represents a fixed state of a test environment. |
yiitestFixtureTrait | FixtureTrait provides functionalities for loading, unloading and accessing fixtures for a test case. |
yiitestInitDbFixture | InitDbFixture represents the initial state needed for DB-related tests. |
yiivalidatorsBooleanValidator | BooleanValidator checks if the attribute value is a boolean value. |
yiivalidatorsCompareValidator | CompareValidator compares the specified attribute value with another value. |
yiivalidatorsDateValidator | DateValidator verifies if the attribute represents a date, time or datetime in a proper $format. |
yiivalidatorsDefaultValueValidator | DefaultValueValidator sets the attribute to be the specified default value. |
yiivalidatorsEachValidator | EachValidator validates an array by checking each of its elements against an embedded validation rule. |
yiivalidatorsEmailValidator | EmailValidator validates that the attribute value is a valid email address. |
yiivalidatorsExistValidator | ExistValidator validates that the attribute value exists in a table. |
yiivalidatorsFileValidator | FileValidator verifies if an attribute is receiving a valid uploaded file. |
yiivalidatorsFilterValidator | FilterValidator converts the attribute value according to a filter. |
yiivalidatorsImageValidator | ImageValidator verifies if an attribute is receiving a valid image. |
yiivalidatorsInlineValidator | InlineValidator represents a validator which is defined as a method in the object being validated. |
yiivalidatorsNumberValidator | NumberValidator validates that the attribute value is a number. |
yiivalidatorsPunycodeAsset | This asset bundle provides the javascript files needed for the yiivalidatorsEmailValidators client validation. |
yiivalidatorsRangeValidator | RangeValidator validates that the attribute value is among a list of values. |
yiivalidatorsRegularExpressionValidator | RegularExpressionValidator validates that the attribute value matches the specified $pattern. |
yiivalidatorsrequiredValidator | requiredValidator 验证指定属性不是空或null。 |
yiivalidatorsSafeValidator | SafeValidator serves as a dummy validator whose main purpose is to mark the attributes to be safe for massive assignment. |
yiivalidatorsStringValidator | StringValidator 验证属性值符合一定长度。 |
yiivalidatorsUniqueValidator | UniqueValidator 验证属性值在指定数据库表中是唯一的。 |
yiivalidatorsUrlValidator | UrlValidator 验证属性值是否为有效的http或https URL。 |
yiivalidatorsValidationAsset | 此资源包提供了客户端验证所需的js文件。 |
yiivalidatorsValidator | Validator 是所有验证器类的基类。 |
yiiwebApplication | Application是所有web应用程序类的基类。 |
yiiwebAssetBundle | AssetBundle 表示一组资源文件的集合, 如 CSS, JS, images. |
yiiwebAssetConverter | AssetConverter supports conversion of several popular script formats into JS or CSS scripts. |
yiiwebAssetConverterInterface | The AssetConverterInterface must be implemented by asset converter classes. |
yiiwebAssetManager | AssetManager manages asset bundle configuration and loading. |
yiiwebBadRequestHttpException | BadRequestHttpException represents a "Bad Request" HTTP Exception with status code 400. |
yiiwebCacheSession | CacheSession implements a Session component using cache as storage medium. |
yiiwebCompositeUrlRule | CompositeUrlRule is the base class for URL rule classes that consist of multiple simpler rules. |
yiiwebConflictHttpException | ConflictHttpException represents a "Conflict" HTTP Exception with status code 409 |
yiiwebController | Controller is the base class of web controllers. |
yiiwebCookie | Cookie 表示一个cookie关联的信息,如 $name, $value, $domain, 等等. |
yiiwebCookieCollection | CookieCollection 保持当前请求中的cookies可用。 |
yiiwebDbSession | DbSession extends yiiwebSession by using database as Session data storage. |
yiiwebErrorAction | ErrorAction 使用指定视图显示应用程序错误。 |
yiiwebErrorHandler | ErrorHandler 处理未捕获的错误和异常。 |
yii\web\ForbiddenHttpException | ForbiddenHttpException represents a "Forbidden" HTTP Exception with status code 403. |
yii\web\GoneHttpException | GoneHttpException represents a "Gone" HTTP Exception with status code 410 |
yii\web\GroupUrlRule | GroupUrlRule represents a collection of URL rules sharing the same prefix in their patterns and routes. |
yii\web\HeaderCollection | HeaderCollection is used by yii\web\Response to maintain the currently registered HTTP headers. |
yii\web\HtmlResponseFormatter | HtmlResponseFormatter formats the given data into an HTML response content. |
yii\web\HttpException | HttpException represents an Exception caused by an improper request of the end-user. |
yii\web\IdentityInterface | IdentityInterface is the interface that should be implemented by a class providing identity information. |
yii\web\JqueryAsset | This asset bundle provides the jquery javascript library |
yii\web\JsExpression | JsExpression marks a string as a JavaScript expression. |
yii\web\JSONParser | Parses a raw HTTP request using yii\helpers\Json::decode() |
yii\web\JsonResponseFormatter | JsonResponseFormatter formats the given data into a JSON or JSONP response content. |
yii\web\Link | Link represents a link object as defined in JSON Hypermedia API Language. |
yii\web\Linkable | Linkable is the interface that should be implemented by classes that typically represent locatable resources. |
yii\web\MethodNotAllowedHttpException | MethodNotAllowedHttpException represents a "Method Not Allowed" HTTP Exception with status code 405. |
yii\web\MultiFieldSession | MultiFieldSession is the base class for Session storage implementations with multi-field data storage support. |
yii\web\NotAcceptableHttpException | NotAcceptableHttpException represents a "Not Acceptable" HTTP Exception with status code 406 |
yii\web\NotFoundHttpException | NotFoundHttpException represents a "Not Found" HTTP Exception with status code 404. |
yii\web\Request | The web Request class represents an HTTP request |
yii\web\RequestParserInterface | Interface for classes that parse the raw request body into a parameters array. |
yii\web\Response | The web Response class represents an HTTP response |
yii\web\ResponseFormatterInterface | ResponseFormatterInterface specifies the interface needed to format a response before it is sent out. |
yii\web\ServerErrorHttpException | ServerErrorHttpException represents an "Internal Server Error" HTTP Exception with status code 500. |
yii\web\Session | Session provides Session data management and the related configurations. |
yii\web\SessionIterator | SessionIterator implements an Iterator for traversing Session variables managed by yii\web\Session. |
yii\web\TooManyRequestsHttpException | TooManyRequestsHttpException represents a "Too Many Requests" HTTP Exception with status code 429 |
yii\web\UnauthorizedHttpException | UnauthorizedHttpException represents an "Unauthorized" HTTP Exception with status code 401 |
yii\web\UnprocessableEntityHttpException | UnprocessableEntityHttpException represents an "Unprocessable Entity" HTTP Exception with status code 422. |
yii\web\UnsupportedMediaTypeHttpException | UnsupportedMediaTypeHttpException represents an "Unsupported Media Type" HTTP Exceptionwith status code 415 |
yiiwebUploadedFile | UploadedFile represents the information for an uploaded file. |
yiiwebUrlManager | UrlManager handles HTTP request parsing and creation of URLs based on a set of rules. |
yiiwebUrlRule | UrlRule represents a rule used by yiiwebUrlManager for parsing and generating URLs. |
yiiwebUrlRuleInterface | UrlRuleInterface is the interface that should be implemented URL rule classes. |
yiiwebUser | User is the class for the "user" Application component that manages the user authentication status. |
yiiwebUserEvent | This event class is used for Events triggered by the yiiwebUser class. |
yiiwebView | View represents a view object in the MVC pattern. |
yiiwebViewAction | ViewAction represents an action that displays a view according to a user-specified parameter. |
yiiwebXmlResponseFormatter | XmlResponseFormatter formats the given data into an XML response content. |
yiiwebYiiAsset | This asset bundle provides the base javascript files for the Yii Framework. |
yiiwidgetsActiveField | ActiveField represents a form input field within an yiiwidgetsActiveForm. |
yiiwidgetsActiveForm | ActiveForm is a widget that builds an interactive HTML form for one or multiple data models. |
yiiwidgetsActiveFormAsset | |
yiiwidgetsBaseListView | BaseListView is a base class for widgets displaying data from data provider such as ListView and GridView. |
yiiwidgetsBlock | Block records all output between begin() and end() calls and stores it in yiibaseView::$blocks. |
yiiwidgetsBreadcrumbs | Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy. |
yiiwidgetsContentDecorator | ContentDecorator records all output between begin() and end() calls, passes it to the given view file as $content and then echoes rendering result. |
yiiwidgetsDetailView | DetailView displays the detail of a single data $model. |
yiiwidgetsFragmentCache | FragmentCache is used by yiibaseView to provide caching of page fragments. |
yiiwidgetsInputWidget | InputWidget is the base class for widgets that collect user inputs. |
yiiwidgetsLinkPager | LinkPager displays a list of hyperlinks that lead to different pages of target. |
yiiwidgetsLinkSorter | LinkSorter renders a list of sort links for the given sort definition. |
yiiwidgetsListView | The ListView widget is used to display data from data provider. Each data model is rendered using the view specified. |
yiiwidgetsMaskedInput | MaskedInput generates a masked text input. |
yiiwidgetsMaskedInputAsset | The asset bundle for the yiiwidgetsMaskedInput widget. |
yiiwidgetsMenu | Menu displays a multi-level menu using nested HTML lists. |
yiiwidgetsPjax | Pjax is a widget integrating the pjax jQuery plugin. |
yiiwidgetsPjaxAsset | This asset bundle provides the javascript files required by yiiwidgetsPjax widget. |
yiiwidgetsSpaceless | Spaceless widget removes whitespace characters between HTML tags. Whitespaces within HTML tags or in a plain text are always left untouched. |
以上就介绍了Yii PHP框架 版本2,包括了require,Exception,Bootstrap,JSONP,PHP框架方面的内容,希望对PHP教程有兴趣的朋友有所帮助。