2017 © Pedro Peláez
 

library module-content

Pages, layouts and stuff

image

webvimark/module-content

Pages, layouts and stuff

  • Monday, October 13, 2014
  • by webvimark
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Pages, layouts adn stuff for Yii 2

Provide: * pages * text blocks, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist webvimark/module-content "*"

or add, (*4)

"webvimark/module-content": "*"

to the require section of your composer.json file., (*5)

Configuration

In your config/web.php, (*6)


'layout'=>'@vendor/webvimark/module-content/views/layouts/defaultMain', 'urlManager' => [ 'rules'=>[ [ 'class' => 'webvimark\modules\content\components\PageUrlRule', 'pattern'=>'', 'route'=>'', 'connectionID' => 'db', ], '<_c:[\w \-]+>/<id:\d+>'=>'<_c>/view', '<_c:[\w \-]+>/<_a:[\w \-]+>/<id:\d+>'=>'<_c>/<_a>', '<_c:[\w \-]+>/<_a:[\w \-]+>'=>'<_c>/<_a>', '<_m:[\w \-]+>/<_c:[\w \-]+>/<_a:[\w \-]+>'=>'<_m>/<_c>/<_a>', '<_m:[\w \-]+>/<_c:[\w \-]+>/<_a:[\w \-]+>/<id:\d+>'=>'<_m>/<_c>/<_a>', ], ], 'modules'=>[ 'content' => [ 'class' => 'webvimark\modules\content\ContentModule', 'freeAccess' => true, // Feature for webvimark/module-user-management. Default is false /* 'left3ColumnCssClass' => 'col-xs-15', 'center3ColumnCssClass' => 'col-xs-30', 'right3ColumnCssClass' => 'col-xs-15', 'left2ColumnCssClass' => 'col-xs-15', 'centerForLeft2ColumnCssClass' => 'col-xs-45', 'right2ColumnCssClass' => 'col-xs-15', 'centerForRight2ColumnCssClass' => 'col-xs-45', */ ], ],

Usage

Go to gii, (*7)

The Versions