vladdnepr / yii2-ycm-utils
YCM - Yii 2 Content Management module Utilities
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 2
Type:yii2-extension
Requires
- php: >=5.4.0
- janisto/yii2-timepicker: *
- janisto/yii2-ycm: *
- kartik-v/yii2-editable: ^1.7
- kartik-v/yii2-field-range: ^1.3
- kartik-v/yii2-grid: ~3.0
- kartik-v/yii2-krajee-base: ~1.7
- kartik-v/yii2-mpdf: ~1.0
- kartik-v/yii2-widgets: ^3.4
- vladdnepr/trait-utils: *
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: *
Requires (Dev)
- phpunit/phpunit: ~4.5
This package is auto-updated.
Last update: 2024-11-25 07:33:28 UTC
README
Yii 2 YCM Utilities
YCM Utils - Yii 2 Content Management module Utilities
Module is in initial development.
Anything may change at any time.
Using
Add to web.php in modules
'ycm-utils' => [
'class' => '\vladdnepr\ycm\utils\Module'
],
Note! ycm
module must be added in modules
Add YcmModelUtilTrait
trait to all models.
In model gridViewColumns
use editableColumn
method for all editable columns. For example
public function gridViewColumns()
{
return [
'id',
$this->editableColumn('name'),
$this->editableColumn('title'),
'description:html',
'link:url'
];
}
Installation
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this package using the following command:
php composer.phar require "vladdnepr/yii2-ycm-utils" "*"
or add
"vladdnepr/yii2-ycm-utils": "*"
to the require section of your application's composer.json
file.
Contributing
Please see CONTRIBUTING for details.
Credits
License
Public domain. Please see License File for more information.