|
2 | 2 |
|
3 | 3 | Yii2-app is Fast and Ready-to-production advanced project template.
|
4 | 4 |
|
5 |
| -**PHP 7.1** because it is really fast. |
| 5 | +For you, I downgrade requirement to PHP v5.6. But **PHP 7.1** is better! because it is really fast. |
| 6 | + |
| 7 | +Please, [enable php intl extension](http://php.net/manual/en/intl.installation.php) for better work. |
6 | 8 |
|
7 | 9 | Default, the template includes three tiers: `frontend`, `backend`, and `console`, each of which is a separate Yii application.
|
8 | 10 |
|
9 | 11 | > **NOTE:** Template is in initial development. Anything may change at any time.
|
10 | 12 |
|
11 | 13 |
|
12 | 14 | ## Features
|
13 |
| -* Admin template is beautiful and simple bootstrap, compatible with yii2 assets: [yiister/yii2-gentelella](https://github.com/yiister/yii2-gentelella), [Demo](https://colorlib.com/polygon/gentelella/) |
| 15 | +* Gentelella Admin template is beautiful and simple bootstrap, compatible with yii2 assets: [yiister/yii2-gentelella](https://github.com/yiister/yii2-gentelella), [Demo](https://colorlib.com/polygon/gentelella/) |
14 | 16 | * Yii2 User is strong and proved user-module with many features: [dektrium/yii2-user](https://github.com/dektrium/yii2-user) (login `adminus`, password `adminus`)
|
15 | 17 | * Frontend and Backend User Controllers are filtered (by `dektrium/yii2-user`)
|
16 |
| -* Redis cache is really fast (you may change to DB-cache, but don't forget [create table](https://www.yiiframework.com/doc/api/2.0/yii-caching-dbcache#$cacheTable-detail)) |
| 18 | +* DB cache, but I recommend Redis Cache - it is really fast |
17 | 19 | * Yii2 queue (DB table `queue`), but you can use *Redis-queue* or other [yii2-queue docs](https://github.com/yiisoft/yii2-queue/blob/master/docs/guide/README.md)
|
18 | 20 | * Queue Manager with backend (`/queuemanager/default/index`) using [ignatenkovnikita/yii2-queuemanager](https://github.com/ignatenkovnikita/yii2-queuemanager)
|
19 | 21 | * Log DB Target with backend (`/log/index`) - simply view log messages
|
20 | 22 | * .htaccess - config for **pretty urls** (rewrite index.php), *may be later add nginx config*
|
21 | 23 | * **UrlManagerFrontend** for backend app (all url rules in file `frontend/config/urls.php`, hostInfo in `common/config/params.php`)
|
22 |
| -* i18n translations in `common/messages` with config |
| 24 | +* i18n translations in `common/messages` with config (current only English and Russian, language translation are welcome!) |
23 | 25 | * ContactForm in frontend app is improved: [himiklab/yii2-recaptcha-widget](https://github.com/himiklab/yii2-recaptcha-widget),
|
24 | 26 | all email are saved to DB (`common/models/EmailForm` Model), optionally send message to Viber messenger via bot
|
25 | 27 | (install requirements [Bogdaan/viber-bot-php](https://github.com/Bogdaan/viber-bot-php) and config, uncomment code in Model)
|
26 | 28 | * **postcss** config (`frontend/web/src/pcss//*.css`)
|
27 | 29 | * Gii generator:
|
28 | 30 | 1. added **yii2-queue** Jobs generator
|
29 | 31 | 2. yii2 migration generator (from existing table) [Insolita/yii2-migrik](https://github.com/Insolita/yii2-migrik)
|
30 |
| -3. may be later - [schmunk42/yii2-giiant](https://github.com/schmunk42/yii2-giiant) - really steroid, but in development with bugs |
| 32 | +3. [schmunk42/yii2-giiant](https://github.com/schmunk42/yii2-giiant) - really steroid, but in development with bugs |
31 | 33 |
|
32 | 34 |
|
33 | 35 | ## Available modules
|
@@ -67,6 +69,13 @@ Change in `common/config/main.php`
|
67 | 69 | 'language' => 'ru-RU',
|
68 | 70 | 'sourceLanguage' => 'en-US',
|
69 | 71 | ```
|
| 72 | + |
| 73 | +Add your language in `common/messages/config.php` |
| 74 | +``` |
| 75 | + 'languages' => [ |
| 76 | + 'ru-RU', |
| 77 | + ], |
| 78 | +``` |
70 | 79 | In shell
|
71 | 80 | ```
|
72 | 81 | php yii message/extract common/messages/config.php
|
|
0 commit comments