Skip to content

Commit 1d09e90

Browse files
Update README.md
1 parent 874235f commit 1d09e90

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,13 @@ or add
2121

2222
to the require section of your `composer.json` file.
2323

24-
Then You have run console command for install this module:
25-
26-
```
27-
php yii module/install product
28-
```
29-
30-
and module will be added to your application config (`@app/config/installed_modules.php`)
24+
Run command `php yii module/install product` to install this module. It will be added to your application config (`@app/config/installed_modules.php`)
3125

3226
Concept
3327
-------
3428

3529
This module allows you to build dynamic pages which consist of blocks (widget with config).
36-
You can create own type of widgets and register it in BlockManager.
30+
You can create custom widgets and register it in BlockManager.
3731

3832

3933
BlockManager
@@ -63,20 +57,20 @@ class BlockManager extends BaseBlockManager
6357
}
6458
```
6559

66-
Also you can register your block in runtime:
60+
To register block at runtime:
6761

6862
```php
6963
Block::getManager()->register('smile','app\blocks\smile');
7064
//or
71-
\Yii::$app->getModule($moduleId)->get('blockManager')->register('smile','app\blocks\smile');
65+
Yii::$app->getModule($moduleId)->get('blockManager')->register('smile','app\blocks\smile');
7266
```
7367

7468

7569

7670
Block structure convention
7771
--------------------------
7872

79-
Each valid block it's folder with to classes:
73+
Each valid block is a folder with to classes:
8074

8175
- Block - define data block to use
8276
- Widget - run with data when this block use on page
@@ -87,7 +81,7 @@ When you add own block you have to set unique id and namespace of block files fo
8781

8882

8983

90-
Using with yii2-admin module
84+
Admin Panel
9185
----------------------------
9286

9387
You can use this module with [Yii2 Admin](https://github.com/NullRefExcep/yii2-admin) module.

0 commit comments

Comments
 (0)