Core module of Royen's CMS project based on Yii2 framework
Core of RCMS project
RCMS Project is created to simplify control over content across user's project. To reach that, it provides several administrative tools to create and control content. Below you will find a list of modules that will improve usage of RCMS.
Please note that this project is in early development stage and based purely on author's enthusiasm. Please leave ideas, notes and issues to this project on official github page
yii2-rcms-core is the base module for other RCMS components. It is included into requirements of other modules and will be downloaded automatically when required other components.
The preferred way to install this extension is through composer.
$ php composer.phar require royen4eg/yii2-rcms-core "*"
require section of your
Once the extension is installed, simply modify your application configuration as follows:
return [ 'bootstrap' => [ //... 'rcmsAdmin', 'rcmsFront' //... ], //... 'modules' => [ 'rcmsAdmin' => [ 'class' => 'rcms\core\AdminModule', ], 'rcmsFront' => [ 'class' => 'rcms\core\FrontModule', ], ] //... ];
To allow access to migration and console commands, modify console configuration as follow:
return [ 'bootstrap' => [ //... 'rcmsAdmin' //... ], //... 'modules' => [ 'rcmsAdmin' => [ 'class' => 'rcms\core\Module', ], ] //... ];
You may use any name instead of rcmsAdmin as it will fill comfortable. For simple config it will be used as url for access to admin dashboard.
You will access it with URL like:
or if you have enabled pretty URLs:
For the start of usage and before migrations, it is highly recommend to change global configurations of RCMS table preffix. For it use the link below:
Current module have custom migration table
Other modules that extends functionality of RCMS might have other tables that should be migrated.
$ php yii rcms/migrate
Migration of User table will automatically create admin record in table (analogy of default
Note: Before migration it is recommended to modify table prefix in global settings