Yii2: how to use component in ActiveController default action
问题 As docs say: [[yii\rest\IndexAction|index]]: list resources page by page response has view: curl -i -H "Accept:application/json" "http://192.168.100.5/index.php/tweets" HTTP/1.1 200 OK Date: Wed, 30 Mar 2016 12:10:07 GMT Server: Apache/2.4.7 (Ubuntu) X-Powered-By: PHP/5.5.9-1ubuntu4.14 X-Pagination-Total-Count: 450 X-Pagination-Page-Count: 23 X-Pagination-Current-Page: 1 X-Pagination-Per-Page: 20 Link: <http://192.168.100.5/tweets?page=1>; rel=self, <http://192.168.100.5/tweets?page=2>; rel