public function actions(){
$actions = parent::actions();
unset($actions['index']);
return $actions;
}
public function actionIndex(){
$activeData = new ActiveDataProvider([
'query' => Your_model::find(),
'pagination' => [
'defaultPageSize' => -1,
'pageSizeLimit' => -1,
],
]);
return $activeData;
}
<?= Html::encode($model->message) ?>
$this->content = HtmlPurifier::process($this->content) ;