PHPackages                             tvip/yii2-extjs-rest - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. tvip/yii2-extjs-rest

ActiveYii2-extension[HTTP &amp; Networking](/categories/http)

tvip/yii2-extjs-rest
====================

REST API for Sencha ExtJS 5+

1.0.0(10y ago)236BSD-3-Clause

Since Jun 24Compare

[ Source](https://github.com/tvip/yii2-extjs-rest)[ Packagist](https://packagist.org/packages/tvip/yii2-extjs-rest)[ RSS](/packages/tvip-yii2-extjs-rest/feed)WikiDiscussions Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Yii 2 REST API for ExtJs(sencha)
================================

[](#yii-2-rest-api-for-extjssencha)

REST API ActiveController support for input parameters extjs and serialize response. Enable in extjs store remoteSort, remoteFilter and autoSync in viewModel.

EXAMPLE PROXY CLASS EXTJS
-------------------------

[](#example-proxy-class-extjs)

```
Ext.define('tvip.proxy.YiiRestProxy', {
    extend: 'Ext.data.proxy.Rest',
    alias: 'proxy.yiirest',

    type: 'rest',

    reader: {
        type: 'json',
        rootProperty: 'data',
    },

    writer: {
        type: 'json'
    },

    headers: {
        "Accept": "application/json",
    },
});
```

INSTALLATION
------------

[](#installation)

```
composer require tvip/yii2-extjs-rest

```

USE
---

[](#use)

Example controller

```
