PHP 클래스 yii\rest\Controller
Controller implements the following steps in a RESTful API request handling cycle:
1. Resolving response format (see [[ContentNegotiator]]);
2. Validating request method (see
Controller::verbs).
3. Authenticating user (see [[\yii\filters\auth\AuthInterface]]);
4. Rate limiting (see [[RateLimiter]]);
5. Formatting response data (see
Controller::serializeData).
For more details and usage information on Controller, see the
guide article on rest controllers.
파일 보기
프로젝트 열기: yiisoft/yii2
1 사용 예제들
공개 프로퍼티들
공개 메소드들
보호된 메소드들
메소드 상세
The default implementation will create a serializer based on the configuration given by [[serializer]].
It then uses the serializer to serialize the given data.
Please refer to [[VerbFilter::actions]] on how to declare the allowed verbs.
프로퍼티 상세
$enableCsrfValidation 공개적으로 프로퍼티
public $enableCsrfValidation |
the configuration for creating the serializer that formats the response data.