Closed thakkar-roshani closed 7 years ago
Hi, try to the following steps
1 . php composer.phar require --prefer-dist yii2mod/yii2-cms "*"
'id' => 'app-backend',
'controllerMap' => [
'cms' => 'yii2mod\cms\controllers\CmsController',
],
Now you can access to management section through the following URL:
http://your-backend-site-url/cms/index
urlManager
section in your frontend config as follows:
'components' => [
'urlManager' => [
'rules' => [
['class' => 'yii2mod\cms\components\PageUrlRule'], // custom page url class
]
],
],
5, And the last step, you need to add the following code to SiteController in fronted app folder
public function actions()
{
return [
'page' => [
'class' => 'yii2mod\cms\actions\PageAction',
]
];
}
And now you can create your own pages via admin panel.
@igor-chepurnoi I am getting forbidden 403 Forbidden error after installation.
Hi, @deep12650
You need to create the user with admin
role. Please, check this code - https://github.com/yii2mod/yii2-cms/blob/master/controllers/ManageController.php#L77
Thanks @igor-chepurnoi. I will do that.
Hi @igor-chepurnoi , I need quick help on these:
I am not using RBAC, So how can I assign role? @igor-chepurnoi
Hi I am installing your extension in advanced app of yii. But i am getting error.
Can you please guide me how i can use it in advanced app? Please