PHP code example of dmstr / yii2-news-module
1. Go to this page and download the library: Download dmstr/yii2-news-module 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/ */
dmstr / yii2-news-module example snippets
\Yii::$container->set(
'schmunk42\giiant\crud\providers\CallbackProvider',
[
'columnFormats' => [
/**
* hide system fields in grid
*/
'^id$|created_at$|updated_at$' => function () {
return false;
},
],
'activeFields' => [
/**
* hide system fields in grid
*/
'^id$|created_at$|updated_at$' => function () {
return false;
},
]
]
);