paulzi/cmyii-core

Cmyii CMS core

Installs: 160

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v0.1.12 2022-05-23 16:07 UTC

This package is auto-updated.

Last update: 2024-10-23 21:22:34 UTC


README

CMYii - is CMS admin system based on Yii Framework 2.

This is core module that provides the functionality of CMS for front-part of site, but does not include the admin system itself.

Install

If you need the complete CMS, see install cmyii.

If you only need a core of CMS, use:

composer require paulzi/cmyii-core

Usage

See cmyii usage for full feature usage guide.

Apply migrations in migrations folder. To do this, use one of the following methods:

  1. Add paulzi\cmyii\migrations namespace to your console app:
return [
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationPath' => null,
            'migrationNamespaces' => [
                'console\migrations',
                'paulzi\cmyii\migrations',
            ],
        ],
    ],
]
  1. Run command:
./yii migrate --migrationPath= --migrationNamespaces=paulzi\cmyii\migrations

To use only the core, specify in the configs of the application:

return [
    'bootstrap' => ['cmyii'],
    'modules' => [
        'cmyii' => [
            'class' => 'paulzi\cmyii\Cmyii',
        ],
    ],
];

Documentation

See cmyii documentation