DEPRECATED REPOSITORY. See https://github.com/vladdnepr/yii2-ycm
YCM Utils - Yii 2 Content Management module Utilities
Anything may change at any time.
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'
];
}
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.
Please see CONTRIBUTING for details.
Public domain. Please see License File for more information.