Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliy-pashkov committed Aug 7, 2017
1 parent e42c9f8 commit 31741da
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions readme.md
Expand Up @@ -10,10 +10,26 @@ Yii2 расширение для работы со структурами дан
- Limit, offset, count работающие так как хочется
- REST API

##Установка
Установка
--

Установка с помощью [composer](http://getcomposer.org/download/).

##Использование
Выполните:
```
php composer.phar require --prefer-dist vpashkov/yii2-represent
```

или добавьте

```json
"vpashkov/yii2-represent": "~1.0.0"
```

в секцию require файла composer.json.

Использование
--

Перед использованием, необходимо сгенерировать модели таблиц ActiveRecord

Expand Down Expand Up @@ -71,8 +87,8 @@ GET /api/one?represent=user/edit
POST /api/save?represent=user/edit
POST /api/delete?represent=user/edit

## Represent API

Represent API
--

| Scope | Method | Description |
| --------| -------- | -------- |
Expand Down Expand Up @@ -295,7 +311,8 @@ class View extends Represent
После выборки словаря вызывается метод `processDICT_NAME($rows)` (где DICT_NAME = ucfirst(имя словаря)) если он определён.


## RepresentController API
RepresentController API
--

RepresentController реализует REST API для методов Represent.
Для использования необходимо создать контроллер унаследованный от RepresentController.
Expand Down

0 comments on commit 31741da

Please sign in to comment.