Yii2 page turning problem

I use the page flip in YII2, there is nothing on the page, and there is no error report, who will see what"s going on? I"ll post the code here.
regardless of the logic of the code, you can see "previous page, next page" on a few code pages, but now you can"t even see that.
who can answer it for me?

<?php
    use yii\widgets\LinkPager;
?>

<?php
    foreach($models as $model){
        var_dump($model);
    }

    echo LinkPager::widget([
        "pagination" => $pages,
    ]);
?>

Mar.16,2021

there is no problem with the code you posted.

if the User table has data and there are more than five items, normally var_dump ($model) and the paging part should be displayed.

if your page is blank and even the contents of the layout file are not output:

1. Check the entry file index.php
the entry file for a normal Yii2-basic should be like this

defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';

$config = require __DIR__ . '/../config/web.php';

(new yii\web\Application($config))->run();

2. If the entry file is normal, the file that is most likely to cause problems is config/web.php

.

Please check that all require files in the config/web.php file exist and return the correct content. For example,

'aliases' = > require (_ _ DIR__. '/ aliases.php'),
$params = require _ _ DIR__. '/ params.php';

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea6482-47b83.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea6482-47b83.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?