PHP yii\web Namespace

Interfaces

Name Description
IdentityInterface IdentityInterface is the interface that should be implemented by a class providing identity information.
UrlRuleInterface UrlRuleInterface is the interface that should be implemented by URL rule classes.

Classes

Name Description
Application Application is the base class for all web application classes.
AssetBundle AssetBundle represents a collection of asset files, such as CSS, JS, images.
AssetConverter AssetConverter supports conversion of several popular script formats into JS or CSS scripts.
AssetManager AssetManager manages asset bundle configuration and loading.
BadRequestHttpException BadRequestHttpException represents a "Bad Request" HTTP exception with status code 400.
CacheSession CacheSession implements a session component using cache as storage medium.
ConflictHttpException ConflictHttpException represents a "Conflict" HTTP exception with status code 409
Controller Controller is the base class of web controllers.
Cookie Cookie represents information related with a cookie, such as [[name]], [[value]], [[domain]], etc.
CookieCollection CookieCollection maintains the cookies available in the current request.
DbSession DbSession extends [[Session]] by using database as session data storage.
ErrorHandler ErrorHandler handles uncaught PHP errors and exceptions.
ForbiddenHttpException ForbiddenHttpException represents a "Forbidden" HTTP exception with status code 403.
GoneHttpException GoneHttpException represents a "Gone" HTTP exception with status code 410
HeaderCollection HeaderCollection is used by [[Response]] to maintain the currently registered HTTP headers.
HttpException HttpException represents an exception caused by an improper request of the end-user.
JsonParser Parses a raw HTTP request using [[\yii\helpers\Json::decode()]]
JsonResponseFormatter JsonResponseFormatter formats the given data into a JSON or JSONP response content.
Link Link represents a link object as defined in [JSON Hypermedia API Language](https://tools.ietf.org/html/draft-kelly-json-hal-03).
MethodNotAllowedHttpException MethodNotAllowedHttpException represents a "Method Not Allowed" HTTP exception with status code 405.
MultiFieldSession MultiFieldSession is the base class for session storage implementations with multi-field data storage support.
MultipartFormDataParser MultipartFormDataParser parses content encoded as 'multipart/form-data'.
NotAcceptableHttpException NotAcceptableHttpException represents a "Not Acceptable" HTTP exception with status code 406
NotFoundHttpException NotFoundHttpException represents a "Not Found" HTTP exception with status code 404.
RangeNotSatisfiableHttpException RangeNotSatisfiableHttpException represents an exception caused by an improper request of the end-user.
Request The web Request class represents an HTTP request
Response The web Response class represents an HTTP response
ServerErrorHttpException ServerErrorHttpException represents an "Internal Server Error" HTTP exception with status code 500.
SessionIterator SessionIterator implements an [[\Iterator|iterator]] for traversing session variables managed by [[Session]].
TooManyRequestsHttpException TooManyRequestsHttpException represents a "Too Many Requests" HTTP exception with status code 429
UnauthorizedHttpException UnauthorizedHttpException represents an "Unauthorized" HTTP exception with status code 401
UnprocessableEntityHttpException UnprocessableEntityHttpException represents an "Unprocessable Entity" HTTP exception with status code 422.
UnsupportedMediaTypeHttpException UnsupportedMediaTypeHttpException represents an "Unsupported Media Type" HTTP exception with status code 415
UploadedFile UploadedFile represents the information for an uploaded file.
UrlManager UrlManager handles HTTP request parsing and creation of URLs based on a set of rules.
UrlNormalizer UrlNormalizer normalizes URLs for [[UrlManager]] and [[UrlRule]].
UrlRule UrlRule represents a rule used by [[UrlManager]] for parsing and generating URLs.
User User is the class for the "user" application component that manages the user authentication status.
UserEvent This event class is used for Events triggered by the [[User]] class.
View View represents a view object in the MVC pattern.
ViewAction ViewAction represents an action that displays a view according to a user-specified parameter.
XmlResponseFormatter XmlResponseFormatter formats the given data into an XML response content.