Download the PHP package concepture/yii2-article-module without Composer
On this page you can find all versions of the php package concepture/yii2-article-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download concepture/yii2-article-module
More information about concepture/yii2-article-module
Files in concepture/yii2-article-module
Download concepture/yii2-article-module
More information about concepture/yii2-article-module
Files in concepture/yii2-article-module
Vendor concepture
Package yii2-article-module
Short Description package under development
License MIT
Package yii2-article-module
Short Description package under development
License MIT
Please rate this library. Is it a good library?
Informations about the package yii2-article-module
concepture-yii2article-module
Подключение
"require": { "concepture/yii2-article" : "*" },
Миграции php yii migrate/up --migrationPath=@concepture/yii2article/console/migrations
Подключение модуля для админки
'modules' => [
'article' => [
'class' => 'concepture\yii2article\Module'
],
],
Для переопределния контроллера добавялем в настройки модуля
'modules' => [
'article' => [
'class' => 'concepture\yii2article\Module',
'controllerMap' => [
'post' => 'backend\controllers\PostController'
],
],
],
Для переопределния папки с представленяими добавялем в настройки модуля
'modules' => [
'article' => [
'class' => 'concepture\yii2article\Module',
'viewPath' => '@backend/views'
],
],
Для переопределния любого класса можно вооспользоваться инекцией зависимостей через config.php К примеру подменить модель StaticBlock на свой
<?php
return [
'container' => [
'definitions' => [
'concepture\yii2article\models\StaticBlock' => ['class' => 'backend\models\StaticBlock'],
],
],
]
All versions of yii2-article-module with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
yiisoft/yii2 Version 2.0.29
yiisoft/yii2-jui Version ~2.0.0
mihaildev/yii2-ckeditor Version *
kartik-v/yii2-widget-select2 Version @dev
yiisoft/yii2 Version 2.0.29
yiisoft/yii2-jui Version ~2.0.0
mihaildev/yii2-ckeditor Version *
kartik-v/yii2-widget-select2 Version @dev
The package concepture/yii2-article-module contains the following files
Loading the files please wait ....