PHP code example of bigdropinc / yii2-editable-column-action

1. Go to this page and download the library: Download bigdropinc/yii2-editable-column-action 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/ */

    

bigdropinc / yii2-editable-column-action example snippets


class TestController extends yii\web\Controller
{
    public function actions()
    {
        return [
            'editColumnAction' => [
                'class' => bigdropinc\EditableColumnAction::className(),
                'modelClass' => MyModel::className(),
                'allowedAttributes' => ['status', 'title'],
            ]
        ];
    }
}