PHP code example of bariew / yii2-page-cms-module
1. Go to this page and download the library: Download bariew/yii2-page-cms-module library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bariew / yii2-page-cms-module example snippets
php composer.phar
'components' => [
...
'urlManager' => [
'rules' => [
[
'class' => 'bariew\pageModule\components\UrlRule',
'pattern' => '<url:\\S*>',
'route' => 'page/default/view'
],
'<controller>/<action>' => '<controller>/<action>',
'<module>/<controller>/<action>' => '<module>/<controller>/<action>',
],
],
],