app/backend/config/main.php
// Enable backend routes
'modules' => [
...
'content' => [
'class' => yiicom\content\backend\Module::class
],
],
app/frontend/config/main.php
'components' => [
...
// Enable url aliases
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'enableStrictParsing' => true,
'rules' => [
[
'class' => yiicom\content\common\components\UrlRule::class,
],
]
],
// Override error handler
'errorHandler' => [
'errorAction' => 'content/page/error',
],
...
// Override default theme
'view' => [
'theme' => [
'pathMap' => [
...
'@yiicom/content' => '@app/themes/content',
]
]
],
],
// Enable frontend routes
'modules' => [
...
'content' => [
'class' => yiicom\content\frontend\Module::class
],
],
app/console/config/main.php
// Enable module commands
'modules' => [
...
'content' => [
'class' => yiicom\content\console\Module::class
],
],
// Enable module migrations
'params' => [
...
'yii.migrations' => [
...
'@yiicom/content/migrations',
],
],
Run migrations to create tables: content_page, content_category , content_url
php yii migrate