https://github.com/dsoft/yii2-abcms-structure
https://github.com/dsoft/yii2-abcms-structure
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dsoft/yii2-abcms-structure
- Owner: dsoft
- License: mit
- Created: 2017-03-01T16:59:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T13:50:15.000Z (about 5 years ago)
- Last Synced: 2024-05-06T14:43:30.900Z (about 2 years ago)
- Language: PHP
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yii2 ABCMS structure library
## Install:
```bash
composer require abcms/yii2-structure:dev-master
```
## DB migrations
1- Add the migration namespaces in the console.php configuration:
```php
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'abcms\library\migrations',
'abcms\structure\migrations',
],
],
],
```
2- Run `./yii migrate`
## Default translation source
Add a default translation source in the main configuration:
```php
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@app/messages',
],
],
],
```
## Add the module
List the structure module in the modules property of the application:
```php
[
'modules' => [
'structure' => [
'class' => 'abcms\structure\module\Module',
],
],
]
```