yii2mod / yii2-cms

Simple CMS extension
MIT License
44 stars 23 forks source link

wiki for yii2 advanced app installation #23

Open paskuale75 opened 6 years ago

paskuale75 commented 6 years ago

It's possible to have a wiki for the installation of this extension on advanced yii app ? I'm a bit of confusion by reading the two issues # 13 and # 14 thanks

paskuale75 commented 6 years ago

After reading issue #13 and opened http://myBackendSite/admin it return this : Invalid Configuration – yii\base\InvalidConfigException Object configuration must be an array containing a "class" element.

Seems to be here the problem:

'modules' => [
        'admin' => [
            'controllerMap' => [
                'cms' => 'yii2mod\cms\controllers\CmsController',
            ],
        ]
]

If I add the class:

'modules' => [
        'admin' => [
            'class' => 'yii2mod\cms\Module',
            'controllerMap' => [
                'cms' => 'yii2mod\cms\controllers\CmsController',
            ],
        ]
]

it return me 403 Forbidden