목차
Yii框架v2.0类参考中文版,yii框架v2.0中文版
本文译者:Alexander Gao  引用、转载请说明出处。
¶" >Yii PHP框架 版本2
¶" >安装 
类参考
백엔드 개발 PHP 튜토리얼 Yii框架v2.0类参考中文版,yii框架v2.0中文版_PHP教程

Yii框架v2.0类参考中文版,yii框架v2.0中文版_PHP教程

Jul 12, 2016 am 09:07 AM
PHP 프레임워크

Yii框架v2.0类参考中文版,yii框架v2.0中文版

本文译者:Alexander Gao  引用、转载请说明出处。

(未完成,译文持续更新中)

Yii PHP框架 版本2

此为 Yii 2的核心框架代码.

此仓库是 https://github.com/yiisoft/yii2下的子项目,请对主仓库提交问题报告、拉取请求。关于许可信息请查阅 LICENSE 文档。

安装 

推荐通过 composer 来安装Yii框架.

运行

composer global require "fxp/composer-asset-plugin:~1.0.0"<span>
composer require yiisoft</span>/yii2
로그인 후 복사

或添加

"yiisoft/yii2": "~2.0.0",
로그인 후 복사

到composer.json 的require section中。

类参考

描述
Yii Yii 是服务公共框架功能的助手类。
yii\BaseYii BaseYii 是Yii框架的核心助手类。
yii\base\Action Action 是所有控制器动作类的基类。
yii\base\ActionEvent ActionEvent 用于表示一个动作事件的事件参数。
yii\base\ActionFilter ActionFilter 是动作过滤器的基类。
yii\base\Application Application 是所有应用类的基类。
yii\base\ArrayAccessTrait ArrayAccessTrait 为 IteratorAggregate, ArrayAccess 和Countable 提供实现。
yii\base\Arrayable Arrayable is the interface that should be implemented by classes who want to support customizable representation of their instances.
yii\base\ArrayableTrait ArrayableTrait 提供了一个 yii\base\Arrayable 接口的公共实现。
yii\base\Behavior Behavior 是所有行为类的基类。
yii\base\BootstrapInterface BootstrapInterface is the interface that should be implemented by classes who want to participate in the application bootstrap process.
yii\base\Component Component is the base class that implements the property, event and behavior features.
yii\base\Configurable Configurable is the interface that should be implemented by classes who support configuring its properties through the last parameter to its constructor.
yii\base\Controller Controller 是包含控制器逻辑的类的基类。
yii\base\DynamicModel DynamicModel 是一个主要用于特定数据验证的模型类。 
yii\base\ErrorException ErrorException 表示一个PHP错误。
yii\base\ErrorHandler ErrorHandler 处理未捕获的php错误和异常。
yii\base\Event Event 是所有事件类的基类。
yii\base\Exception Exception为所有问题表示一个普通异常。
yii\base\ExitException ExitException 表示一个应用程序的正常终止。
yii\base\InlineAction InlineAction 表示一个被定义为控制器方法的动作。
yii\base\InvalidCallException InvalidCallException 表示一个因使用错误方式调用方法而引发的异常。
yii\base\InvalidConfigException InvalidConfigException 表示由错误的对象配置而引发的异常。
yii\base\InvalidParamException InvalidParamException 表示由传入到方法的无效函数而引发的异常。
yii\base\InvalidRouteException InvalidRouteException 表示因无效路由引发的异常。.
yii\base\InvalidValueException InvalidValueException 表示因函数返回意外类型的值而引发的异常。
yii\base\Model Model 是数据模型的基类。
yii\base\ModelEvent ModelEvent 表示了一个 yii\base\Model events 需要的参数。
yii\base\Module Module 是模块和应用程序类的基类。
yii\base\NotSupportedException NotSupportedException 表示一个因访问不支持的功能而引发的异常。
yii\base\Object Object is the base class that implements the property feature.
yii\base\Request Request 表示一个被 yii\base\Application 处理的请求对象。
yii\base\Response Response represents the response of an yii\base\Application to a yii\base\Request.
yii\base\Security Security provides a set of methods to handle common security-related tasks.
yii\base\Theme Theme 表示应用程序的主题。
yii\base\UnknownClassException UnknownClassException 表示因使用未知的类引发的异常。
yii\base\UnknownMethodException UnknownMethodException represents an exception caused by accessing an unknown object method.
yii\base\UnknownPropertyException UnknownPropertyException represents an exception caused by accessing unknown object properties.
yii\base\UserException UserException 是将要显示给终端用户的异常的基类。
yii\base\View View 代表MVC模式下的视图对象。
yii\base\ViewContextInterface ViewContextInterface is the interface that should implemented by classes who want to support relative view names.
yii\base\ViewEvent ViewEvent 表示被 yii\base\View 组件触发的事件。
yii\base\ViewRenderer ViewRenderer是视图渲染类的基类。
yii\base\Widget Widget 是插件类的基类。
yii\behaviors\AttributeBehavior AttributeBehavior automatically assigns a specified value to one or multiple attributes of an ActiveRecord object when certain events happen.
yii\behaviors\BlameableBehavior BlameableBehavior automatically fills the specified attributes with the current user ID.
yii\behaviors\SluggableBehavior SluggableBehavior automatically fills the specified attribute with a value that can be used a slug in a URL.
yii\behaviors\TimestampBehavior TimestampBehavior automatically fills the specified attributes with the current timestamp.
yii\caching\ApcCache ApcCache provides APC caching in terms of an application component.
yii\caching\ArrayCache ArrayCache provides caching for the current request only by storing the values in an array.
yii\caching\Cache Cache is the base class for cache classes supporting different cache storage implementations.
yii\caching\ChainedDependency ChainedDependency represents a dependency which is composed of a list of other dependencies.
yii\caching\DbCache DbCache implements a cache application component by storing cached data in a database.
yii\caching\DbDependency DbDependency represents a dependency based on the query result of a SQL statement.
yii\caching\Dependency Dependency is the base class for cache dependency classes.
yii\caching\DummyCache DummyCache is a placeholder cache component.
yii\caching\ExpressionDependency ExpressionDependency represents a dependency based on the result of a PHP expression.
yii\caching\FileCache FileCache implements a cache component using files.
yii\caching\FileDependency FileDependency represents a dependency based on a file's last modification time.
yii\caching\MemCache MemCache implements a cache application component based on memcache and memcached.
yii\caching\MemCacheServer MemCacheServer represents the configuration data for a single memcache or memcached server.
yii\caching\TagDependency TagDependency associates a cached data item with one or multiple $tags.
yii\caching\WinCache WinCache provides Windows Cache caching in terms of an application component.
yii\caching\XCache XCache provides XCache caching in terms of an application component.
yii\caching\ZendDataCache ZendDataCache provides Zend data caching in terms of an application component.
yii\captcha\Captcha Captcha 显示一个验证码图片和接收用户输入的验证码的输入框。
yii\captcha\CaptchaAction CaptchaAction 显示一个验证码图片。
yii\captcha\CaptchaAsset This asset bundle provides the javascript files needed for the yii\captcha\Captcha widget.
yii\captcha\CaptchaValidator CaptchaValidator validates that the attribute value is the same as the verification code displayed in the CAPTCHA.
yii\console\Application Application represents a console application.
yii\console\Controller Controller is the base class of console command classes.
yii\console\ErrorHandler ErrorHandler handles uncaught PHP errors and exceptions.
yii\console\Exception Exception represents an exception caused by incorrect usage of a console command.
yii\console\Markdown A Markdown parser that enhances markdown for reading in console environments.
yii\console\Request The console Request represents the environment information for a console application.
yii\console\Response The console Response represents the result of a console application.
yii\console\controllers\AssetController Allows you to combine and compress your JavaScript and CSS files.
yii\console\controllers\BaseMigrateController BaseMigrateController is base class for migrate controllers.
yii\console\controllers\CacheController 允许你来刷新缓存。
yii\console\controllers\FixtureController Manages fixture data loading and unloading.
yii\console\controllers\HelpController 提供关于控制台命令的错误信息。
yii\console\controllers\MessageController Extracts messages to be translated from source files.
yii\console\controllers\MigrateController Manages application migrations.
yii\data\ActiveDataProvider ActiveDataProvider implements a data provider based on yii\db\Query and yii\db\ActiveQuery.
yii\data\ArrayDataProvider ArrayDataProvider implements a data provider based on a data array.
yii\data\BaseDataProvider BaseDataProvider provides a base class that implements the yii\data\DataProviderInterface.
yii\data\DataProviderInterface DataProviderInterface is the interface that must be implemented by data provider classes.
yii\data\Pagination Pagination represents information relevant to pagination of data items.
yii\data\Sort Sort represents information relevant to sorting.
yii\data\SqlDataProvider SqlDataProvider implements a data provider based on a plain SQL statement.
yii\db\ActiveQuery ActiveQuery represents a DB query associated with an Active Record class.
yii\db\ActiveQueryInterface ActiveQueryInterface defines the common interface to be implemented by active record query classes.
yii\db\ActiveQueryTrait ActiveQueryTrait implements the common methods and properties for active record query classes.
yii\db\ActiveRecord ActiveRecord is the base class for classes representing relational data in terms of objects.
yii\db\ActiveRecordInterface ActiveRecordInterface
yii\db\ActiveRelationTrait ActiveRelationTrait implements the common methods and properties for active record relational queries.
yii\db\AfterSaveEvent AfterSaveEvent represents the information available in yii\db\ActiveRecord::EVENT_AFTER_INSERT and yii\db\ActiveRecord::EVENT_AFTER_UPDATE.
yii\db\BaseActiveRecord ActiveRecord is the base class for classes representing relational data in terms of objects.
yii\db\BatchQueryResult BatchQueryResult represents a batch query from which you can retrieve data in batches.
yii\db\ColumnSchema ColumnSchema class describes the metadata of a column in a database table.
yii\db\ColumnSchemaBuilder ColumnSchemaBuilder helps to define database schema types using a PHP interface.
yii\db\Command Command represents a SQL statement to be executed against a database.
yii\db\Connection Connection represents a connection to a database via PDO.
yii\db\DataReader DataReader represents a forward-only stream of rows from a query result set.
yii\db\Exception Exception represents an exception that is caused by some DB-related operations.
yii\db\Expression Expression represents a DB expression that does not need escaping or quoting.
yii\db\IntegrityException Exception represents an exception that is caused by violation of DB constraints.
yii\db\Migration Migration is the base class for representing a database migration.
yii\db\MigrationInterface The MigrationInterface defines the minimum set of methods to be implemented by a database migration.
yii\db\Query Query represents a SELECT SQL statement in a way that is independent of DBMS.
yii\db\QueryBuilder QueryBuilder builds a SELECT SQL statement based on the specification given as a yii\db\Query object.
yii\db\QueryInterface The QueryInterface defines the minimum set of methods to be implemented by a database query.
yii\db\QueryTrait The BaseQuery trait represents the minimum method set of a database Query.
yii\db\Schema Schema is the base class for concrete DBMS-specific schema classes.
yii\db\SchemaBuilderTrait SchemaBuilderTrait contains shortcut methods to create instances of yii\db\ColumnSchemaBuilder.
yii\db\StaleObjectException  
yii\db\TableSchema TableSchema represents the metadata of a database table.
yii\db\Transaction Transaction 表示一个数据库事务。
yii\db\cubrid\QueryBuilder QueryBuilder is the query builder for CUBRID databases (version 9.3.x and higher).
yii\db\cubrid\Schema Schema is the class for retrieving metadata from a CUBRID database (version 9.3.x and higher).
yii\db\mssql\PDO This is an extension of the default PDO class of MSSQL and DBLIB drivers.
yii\db\mssql\QueryBuilder QueryBuilder is the query builder for MS SQL Server databases (version 2008 and above).
yii\db\mssql\Schema Schema is the class for retrieving metadata from a MS SQL Server databases (version 2008 and above).
yii\db\mssql\SqlsrvPDO This is an extension of the default PDO class of SQLSRV driver.
yii\db\mssql\TableSchema TableSchema represents the metadata of a database table.
yii\db\mysql\QueryBuilder QueryBuilder 是MySQL数据库的查询构建器。
yii\db\mysql\Schema Schema is the class for retrieving metadata from a MySQL database (version 4.1.x and 5.x).
yii\db\oci\ColumnSchemaBuilder ColumnSchemaBuilder is the schema builder for Oracle databases.
yii\db\oci\QueryBuilder QueryBuilder is the query builder for Oracle databases.
yii\db\oci\Schema Schema is the class for retrieving metadata from an Oracle database
yii\db\pgsql\QueryBuilder QueryBuilder is the query builder for PostgreSQL databases.
yii\db\pgsql\Schema Schema is the class for retrieving metadata from a PostgreSQL database (version 9.x and above).
yii\db\sqlite\QueryBuilder QueryBuilder is the query builder for SQLite databases.
yii\db\sqlite\Schema Schema is the class for retrieving metadata from a SQLite (2/3) database.
yii\di\Container Container implements a dependency injection container.
yii\di\Instance Instance represents a reference to a named object in a dependency injection (DI) container or a service locator.
yii\di\ServiceLocator 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.
yii\helpers\BaseArrayHelper BaseArrayHelper provides concrete implementation for yii\helpers\ArrayHelper.
yii\helpers\BaseConsole BaseConsole provides concrete implementation for yii\helpers\Console.
yii\helpers\BaseFileHelper BaseFileHelper provides concrete implementation for yii\helpers\FileHelper.
yii\helpers\BaseFormatConverter BaseFormatConverter provides concrete implementation for yii\helpers\FormatConverter.
yii\helpers\BaseHtml BaseHtml provides concrete implementation for yii\helpers\Html.
yii\helpers\BaseHtmlPurifier BaseHtmlPurifier provides concrete implementation for yii\helpers\HtmlPurifier.
yii\helpers\BaseInflector BaseInflector provides concrete implementation for yii\helpers\Inflector.
yii\helpers\BaseJson BaseJson provides concrete implementation for yii\helpers\Json.
yii\helpers\BaseMarkdown BaseMarkdown provides concrete implementation for yii\helpers\Markdown.
yii\helpers\BaseStringHelper BaseStringHelper provides concrete implementation for yii\helpers\StringHelper.
yii\helpers\BaseUrl BaseUrl provides concrete implementation for yii\helpers\Url.
yii\helpers\BaseVarDumper BaseVarDumper provides concrete implementation for yii\helpers\VarDumper.
yii\helpers\Console Console helper provides useful methods for command line related tasks such as getting input or formatting and coloring output.
yii\helpers\FileHelper File system helper
yii\helpers\FormatConverter FormatConverter provides functionality to convert between different formatting pattern formats.
yii\helpers\Html Html provides a set of static methods for generating commonly used HTML tags.
yii\helpers\HtmlPurifier HtmlPurifier provides an ability to clean up HTML from any harmful code.
yii\helpers\Inflector Inflector pluralizes and singularizes English nouns. It also contains some other useful methods.
yii\helpers\Json Json is a helper class providing JSON data encoding and decoding.
yii\helpers\Markdown Markdown provides an ability to transform markdown into HTML.
yii\helpers\StringHelper StringHelper
yii\helpers\Url Url provides a set of static methods for managing URLs.
yii\helpers\VarDumper VarDumper is intended to replace the buggy PHP function var_dump and print_r.
yii\i18n\DbMessageSource DbMessageSource extends yii\i18n\MessageSource and represents a message source that stores translated messages in database.
yii\i18n\Formatter Formatter provides a set of commonly used data formatting methods.
yii\i18n\GettextFile GettextFile is the base class for representing a Gettext message file.
yii\i18n\GettextMessageSource GettextMessageSource represents a message source that is based on GNU Gettext.
yii\i18n\GettextMoFile GettextMoFile represents an MO Gettext message file.
yii\i18n\GettextPoFile GettextPoFile represents a PO Gettext message file.
yii\i18n\I18N I18N provides features related with internationalization (I18N) and localization (L10N).
yii\i18n\MessageFormatter MessageFormatter allows formatting messages via ICU message format
yii\i18n\MessageSource MessageSource is the base class for message translation repository classes.
yii\i18n\MissingTranslationEvent MissingTranslationEvent represents the parameter for the yii\i18n\MessageSource::EVENT_MISSING_TRANSLATION event.
yii\i18n\PhpMessageSource PhpMessageSource represents a message source that stores translated messages in PHP scripts.
yii\log\DbTarget DbTarget stores log messages in a database table.
yii\log\Dispatcher Dispatcher manages a set of log targets.
yii\log\EmailTarget EmailTarget sends selected log messages to the specified email addresses.
yii\log\FileTarget FileTarget records log messages in a file.
yii\log\Logger Logger records logged messages in memory and sends them to different targets if $dispatcher is set.
yii\log\SyslogTarget SyslogTarget writes log to syslog.
yii\log\Target 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 yii\mail\MessageInterface.
yii\mail\MailEvent MailEvent represents the event parameter used for events triggered by yii\mail\BaseMailer.
yii\mail\MailerInterface MailerInterface is the interface that should be implemented by mailer classes.
yii\mail\MessageInterface MessageInterface is the interface that should be implemented by mail message classes.
yii\mutex\DbMutex DbMutex is the base class for classes, which relies on database while implementing mutex "lock" mechanism.
yii\mutex\FileMutex FileMutex implements mutex "lock" mechanism via local file system files.
yii\mutex\Mutex Mutex component allows mutual execution of the concurrent processes, preventing "race conditions".
yii\mutex\MysqlMutex MysqlMutex implements mutex "lock" mechanism via MySQL locks.
yii\rbac\Assignment Assignment represents an assignment of a role to a user.
yii\rbac\BaseManager BaseManager is a base class implementing yii\rbac\ManagerInterface for RBAC management.
yii\rbac\DbManager DbManager represents an authorization manager that stores authorization information in database.
yii\rbac\Item  
yii\rbac\ManagerInterface  
yii\rbac\Permission  
yii\rbac\PhpManager PhpManager represents an authorization manager that stores authorization information in terms of a PHP script file.
yii\rbac\Role  
yii\rbac\Rule Rule represents a business constraint that may be associated with a role, permission or assignment.
yii\rest\Action Action is the base class for action classes that implement RESTful API.
yii\rest\ActiveController ActiveController implements a common set of actions for supporting RESTful access to ActiveRecord.
yii\rest\Controller Controller is the base class for RESTful API controller classes.
yii\rest\CreateAction CreateAction implements the API endpoint for creating a new model from the given data.
yii\rest\DeleteAction DeleteAction implements the API endpoint for deleting a model.
yii\rest\IndexAction  
yii\rest\OptionsAction OptionsAction responds to the OPTIONS request by sending back an Allow header.
yii\rest\Serializer Serializer converts resource objects and collections into array representation.
yii\rest\UpdateAction UpdateAction implements the API endpoint for updating a model.
yii\rest\UrlRule UrlRule is provided to simplify the creation of URL rules for RESTful API support.
yii\rest\ViewAction ViewAction implements the API endpoint for returning the detailed information about a model.
yii\test\ActiveFixture ActiveFixture represents a fixture backed up by a ActiveRecord class or a database table.
yii\test\ArrayFixture ArrayFixture represents arbitrary fixture that can be loaded from PHP files.
yii\test\BaseActiveFixture BaseActiveFixture is the base class for fixture classes that support accessing fixture data as ActiveRecord objects.
yii\test\DbFixture DbFixture is the base class for DB-related fixtures.
yii\test\Fixture Fixture represents a fixed state of a test environment.
yii\test\FixtureTrait FixtureTrait provides functionalities for loading, unloading and accessing fixtures for a test case.
yii\test\InitDbFixture InitDbFixture represents the initial state needed for DB-related tests.
yii\validators\BooleanValidator BooleanValidator checks if the attribute value is a boolean value.
yii\validators\CompareValidator CompareValidator compares the specified attribute value with another value.
yii\validators\DateValidator DateValidator verifies if the attribute represents a date, time or datetime in a proper $format.
yii\validators\DefaultValueValidator DefaultValueValidator sets the attribute to be the specified default value.
yii\validators\EachValidator EachValidator validates an array by checking each of its elements against an embedded validation rule.
yii\validators\EmailValidator EmailValidator validates that the attribute value is a valid email address.
yii\validators\ExistValidator ExistValidator validates that the attribute value exists in a table.
yii\validators\FileValidator FileValidator verifies if an attribute is receiving a valid uploaded file.
yii\validators\FilterValidator FilterValidator converts the attribute value according to a filter.
yii\validators\ImageValidator ImageValidator verifies if an attribute is receiving a valid image.
yii\validators\InlineValidator InlineValidator represents a validator which is defined as a method in the object being validated.
yii\validators\NumberValidator NumberValidator validates that the attribute value is a number.
yii\validators\PunycodeAsset This asset bundle provides the javascript files needed for the yii\validators\EmailValidators client validation.
yii\validators\RangeValidator RangeValidator validates that the attribute value is among a list of values.
yii\validators\RegularExpressionValidator RegularExpressionValidator validates that the attribute value matches the specified $pattern.
yii\validators\RequiredValidator RequiredValidator 验证指定属性不是空或null。
yii\validators\SafeValidator SafeValidator serves as a dummy validator whose main purpose is to mark the attributes to be safe for massive assignment.
yii\validators\StringValidator StringValidator 验证属性值符合一定长度。
yii\validators\UniqueValidator UniqueValidator 验证属性值在指定数据库表中是唯一的。
yii\validators\UrlValidator UrlValidator 验证属性值是否为有效的http或https URL。
yii\validators\ValidationAsset 此资源包提供了客户端验证所需的js文件。
yii\validators\Validator Validator 是所有验证器类的基类。
yii\web\Application Application是所有web应用程序类的基类。
yii\web\AssetBundle AssetBundle 表示一组资源文件的集合, 如 CSS, JS, images.
yii\web\AssetConverter AssetConverter supports conversion of several popular script formats into JS or CSS scripts.
yii\web\AssetConverterInterface The AssetConverterInterface must be implemented by asset converter classes.
yii\web\AssetManager AssetManager manages asset bundle configuration and loading.
yii\web\BadRequestHttpException BadRequestHttpException represents a "Bad Request" HTTP exception with status code 400.
yii\web\CacheSession CacheSession implements a session component using cache as storage medium.
yii\web\CompositeUrlRule CompositeUrlRule is the base class for URL rule classes that consist of multiple simpler rules.
yii\web\ConflictHttpException ConflictHttpException represents a "Conflict" HTTP exception with status code 409
yii\web\Controller Controller is the base class of web controllers.
yii\web\Cookie Cookie 表示一个cookie关联的信息,如 $name, $value, $domain, 等等.
yii\web\CookieCollection CookieCollection 保持当前请求中的cookies可用。
yii\web\DbSession DbSession extends yii\web\Session by using database as session data storage.
yii\web\ErrorAction ErrorAction 使用指定视图显示应用程序错误。
yii\web\ErrorHandler 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 exception with status code 415
yii\web\UploadedFile UploadedFile represents the information for an uploaded file.
yii\web\UrlManager UrlManager handles HTTP request parsing and creation of URLs based on a set of rules.
yii\web\UrlRule UrlRule represents a rule used by yii\web\UrlManager for parsing and generating URLs.
yii\web\UrlRuleInterface UrlRuleInterface is the interface that should be implemented URL rule classes.
yii\web\User User is the class for the "user" application component that manages the user authentication status.
yii\web\UserEvent This event class is used for Events triggered by the yii\web\User class.
yii\web\View View represents a view object in the MVC pattern.
yii\web\ViewAction ViewAction represents an action that displays a view according to a user-specified parameter.
yii\web\XmlResponseFormatter XmlResponseFormatter formats the given data into an XML response content.
yii\web\YiiAsset This asset bundle provides the base javascript files for the Yii Framework.
yii\widgets\ActiveField ActiveField represents a form input field within an yii\widgets\ActiveForm.
yii\widgets\ActiveForm ActiveForm is a widget that builds an interactive HTML form for one or multiple data models.
yii\widgets\ActiveFormAsset  
yii\widgets\BaseListView BaseListView is a base class for widgets displaying data from data provider such as ListView and GridView.
yii\widgets\Block Block records all output between begin() and end() calls and stores it in yii\base\View::$blocks.
yii\widgets\Breadcrumbs Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy.
yii\widgets\ContentDecorator ContentDecorator records all output between begin() and end() calls, passes it to the given view file as $content and then echoes rendering result.
yii\widgets\DetailView DetailView displays the detail of a single data $model.
yii\widgets\FragmentCache FragmentCache is used by yii\base\View to provide caching of page fragments.
yii\widgets\InputWidget InputWidget is the base class for widgets that collect user inputs.
yii\widgets\LinkPager LinkPager displays a list of hyperlinks that lead to different pages of target.
yii\widgets\LinkSorter LinkSorter renders a list of sort links for the given sort definition.
yii\widgets\ListView The ListView widget is used to display data from data provider. Each data model is rendered using the view specified.
yii\widgets\MaskedInput MaskedInput generates a masked text input.
yii\widgets\MaskedInputAsset The asset bundle for the yii\widgets\MaskedInput widget.
yii\widgets\Menu Menu displays a multi-level menu using nested HTML lists.
yii\widgets\Pjax Pjax is a widget integrating the pjax jQuery plugin.
yii\widgets\PjaxAsset This asset bundle provides the javascript files required by yii\widgets\Pjax widget.
yii\widgets\Spaceless Spaceless widget removes whitespace characters between HTML tags. Whitespaces within HTML tags or in a plain text are always left untouched.

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1061853.htmlTechArticleYii框架v2.0类参考中文版,yii框架v2.0中文版 本文译者:Alexander Gao alexander2004@126.com 引用、转载请说明出处。 (未完成,译文持续更新中) Yi...
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

핫 AI 도구

Undresser.AI Undress

Undresser.AI Undress

사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover

AI Clothes Remover

사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool

Undress AI Tool

무료로 이미지를 벗다

Clothoff.io

Clothoff.io

AI 옷 제거제

AI Hentai Generator

AI Hentai Generator

AI Hentai를 무료로 생성하십시오.

인기 기사

R.E.P.O. 에너지 결정과 그들이하는 일 (노란색 크리스탈)
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 최고의 그래픽 설정
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 아무도들을 수없는 경우 오디오를 수정하는 방법
3 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25 : Myrise에서 모든 것을 잠금 해제하는 방법
4 몇 주 전 By 尊渡假赌尊渡假赌尊渡假赌

뜨거운 도구

메모장++7.3.1

메모장++7.3.1

사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전

SublimeText3 중국어 버전

중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기

스튜디오 13.0.1 보내기

강력한 PHP 통합 개발 환경

드림위버 CS6

드림위버 CS6

시각적 웹 개발 도구

SublimeText3 Mac 버전

SublimeText3 Mac 버전

신 수준의 코드 편집 소프트웨어(SublimeText3)

PHP 프레임워크의 장점과 단점 비교: 어느 것이 더 좋나요? PHP 프레임워크의 장점과 단점 비교: 어느 것이 더 좋나요? Jun 04, 2024 pm 03:36 PM

PHP 프레임워크의 선택은 프로젝트 요구 사항과 개발자 기술에 따라 다릅니다. Laravel: 기능이 풍부하고 커뮤니티가 활발하지만 학습 곡선이 가파르고 성능 오버헤드가 높습니다. CodeIgniter: 가볍고 확장하기 쉽지만 기능이 제한되고 문서가 적습니다. Symfony: 모듈식이며 강력한 커뮤니티이지만 복잡한 성능 문제가 있습니다. ZendFramework: 엔터프라이즈급이며 안정적이고 신뢰할 수 있지만 라이센스 비용이 크고 부피가 큽니다. 슬림(Slim): 마이크로 프레임워크로 빠르지만 기능이 제한되고 학습 곡선이 가파릅니다.

다양한 개발 환경에서 PHP 프레임워크의 성능 차이 다양한 개발 환경에서 PHP 프레임워크의 성능 차이 Jun 05, 2024 pm 08:57 PM

다양한 개발 환경에서는 PHP 프레임워크의 성능에 차이가 있습니다. 개발 환경(예: 로컬 Apache 서버)은 낮은 로컬 서버 성능 및 디버깅 도구와 같은 요인으로 인해 프레임워크 성능이 저하됩니다. 대조적으로, 더 강력한 서버와 최적화된 구성을 갖춘 프로덕션 환경(예: 완전한 기능을 갖춘 프로덕션 서버)은 프레임워크에 훨씬 더 나은 성능을 제공합니다.

PHP 프레임워크 및 마이크로서비스: 클라우드 네이티브 배포 및 컨테이너화 PHP 프레임워크 및 마이크로서비스: 클라우드 네이티브 배포 및 컨테이너화 Jun 04, 2024 pm 12:48 PM

PHP 프레임워크와 마이크로서비스 결합의 이점: 확장성: 애플리케이션을 쉽게 확장하고, 새로운 기능을 추가하거나 더 많은 로드를 처리합니다. 유연성: 마이크로서비스는 독립적으로 배포 및 유지 관리되므로 변경 및 업데이트가 더 쉬워집니다. 고가용성: 하나의 마이크로서비스 장애가 다른 부분에 영향을 주지 않아 더 높은 가용성을 보장합니다. 실제 사례: Laravel 및 Kubernetes를 사용하여 마이크로서비스 배포 단계: Laravel 프로젝트를 생성합니다. 마이크로서비스 컨트롤러를 정의합니다. Dockerfile을 만듭니다. Kubernetes 매니페스트를 만듭니다. 마이크로서비스를 배포합니다. 마이크로서비스를 테스트합니다.

DevOps와 PHP 프레임워크의 통합: 자동화 및 민첩성의 미래 DevOps와 PHP 프레임워크의 통합: 자동화 및 민첩성의 미래 Jun 05, 2024 pm 09:18 PM

PHP 프레임워크를 DevOps와 통합하면 효율성과 민첩성이 향상될 수 있습니다. 지루한 작업을 자동화하고, 직원이 전략적 작업에 집중할 수 있도록 하며, 릴리스 주기를 단축하고, 출시 기간을 단축하고, 코드 품질을 개선하고, 오류를 줄이고, 부서 간 팀 협업을 강화하고, 분석을 세분화합니다. 개발 및 운영 사일로

마이크로서비스 아키텍처를 위한 최고의 PHP 프레임워크: 성능 및 효율성 마이크로서비스 아키텍처를 위한 최고의 PHP 프레임워크: 성능 및 효율성 Jun 03, 2024 pm 08:27 PM

최고의 PHP 마이크로서비스 프레임워크: Symfony: 유연성, 성능 및 확장성으로 마이크로서비스 구축을 위한 구성 요소 제품군을 제공합니다. Laravel: 효율성과 테스트 가능성에 중점을 두고 깔끔한 API 인터페이스를 제공하며 상태 비저장 서비스를 지원합니다. 슬림: 미니멀하고 빠르며 고성능 API 구축에 적합한 간단한 라우팅 시스템과 옵션 미드바디 빌더를 제공합니다.

PHP 프레임워크에서 인공지능의 응용 가능성 PHP 프레임워크에서 인공지능의 응용 가능성 Jun 03, 2024 am 11:01 AM

PHP 프레임워크에서 인공 지능(AI)의 응용 가능성은 다음과 같습니다. 자연어 처리(NLP): 텍스트 분석, 감정 식별 및 요약 생성. 이미지 처리: 이미지 객체 식별, 얼굴 감지 및 크기 조정에 사용됩니다. 기계 학습: 예측, 분류 및 클러스터링을 위한 것입니다. 실제 사례: 챗봇, 개인화된 추천, 사기 탐지. AI를 통합하면 웹사이트나 애플리케이션 기능이 향상되어 강력한 새 기능을 제공할 수 있습니다.

PHP 프레임워크 및 인공 지능: 개발자 가이드 PHP 프레임워크 및 인공 지능: 개발자 가이드 Jun 04, 2024 pm 12:47 PM

PHP 프레임워크를 사용하여 인공 지능(AI)을 통합하여 웹 애플리케이션에서 AI 통합을 단순화합니다. 권장 프레임워크: Laravel: 가볍고 효율적이며 강력합니다. CodeIgniter: 간단하고 사용하기 쉬우며 소규모 애플리케이션에 적합합니다. ZendFramework: 완전한 기능을 갖춘 엔터프라이즈급 프레임워크입니다. AI 통합 방법: 머신러닝 모델: 특정 작업을 수행합니다. AIAPI: 사전 구축된 기능을 제공합니다. AI 라이브러리: AI 작업을 처리합니다.

신속한 개발을 위해 가장 포괄적인 확장 라이브러리를 제공하는 PHP 프레임워크는 무엇입니까? 신속한 개발을 위해 가장 포괄적인 확장 라이브러리를 제공하는 PHP 프레임워크는 무엇입니까? Jun 04, 2024 am 10:45 AM

PHP 프레임워크 확장 라이브러리는 선택할 수 있는 네 가지 프레임워크를 제공합니다. Laravel: 광범위한 생태계와 타사 패키지로 잘 알려져 있으며 인증, 라우팅, 검증 및 기타 확장 기능을 제공합니다. Symfony: 인증, 양식 등과 같은 영역을 포괄하는 재사용 가능한 "번들"을 통해 고도로 모듈화된 기능을 확장합니다. CodeIgniter: 가볍고 고성능이며 데이터베이스 연결 및 양식 유효성 검사와 같은 실용적인 확장 기능을 제공합니다. ZendFramework: 인증, 데이터베이스 연결, RESTfulAPI 지원 등과 같은 확장 기능을 갖춘 강력한 엔터프라이즈급 기능입니다.

See all articles