ersaf/events
There is no license information available for the latest version (1.1.0) of this package.
Ersaf Events
1.1.0
2020-02-17 16:53 UTC
Requires
- php:>=5.4.0
- elitedivision/amos-core:>=1.9
- elitedivision/amos-events:~1.1.6
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Events management.
Installation
You need to require this package and enable the module in your configuration.
add to composer requirements in composer.json
"ersaf/events": "dev-master as 1.0.0",
or run command bash:
composer require "ersaf/events": "dev-master as 1.0.0",
Configure the theme property of the view application component.
'view' => [
'class' => 'elitedivision\amos\core\components\AmosView',
'theme' => [
'pathMap' => [
'@vendor/elitedivision/amos-events/src/views' => '@vendor/ersaf/events/src/views',
],
],
],
Add configurations to Events module in modules-amos.php in backend as follows
'events' => [
'modelMap' => [
'Event' => 'ersaf\events\models\Event',
'EventSearch' => 'ersaf\events\models\search\EventSearch'
],
'controllerMap' => [
'event' => [
'class' => 'ersaf\events\controllers\EventController',
],
'user-role' => [
'class' => 'ersaf\events\controllers\UserRoleController',
],
'event-tipology' => [
'class' => 'ersaf\events\controllers\EventTipologyController',
]
],
],
Add configurations to i18n component in components-others.php in common as follows
'i18n' => [
'translations' => [
'*' => [
'extraCategoryPaths' => [
'amosevents' => '@vendor/ersaf/events/src/i18n',
],
],
],
],
add events migrations to console modules (console/config/migrations-amos.php):
'@vendor/ersaf/events/src/migrations'