is there any way to show data like this in listview? : hi i am complately new in yii2 and i want show 10 titles of latest post with link that in view page. i found a way to that but it's not good. is there an way do that?
and this code don't show latest post i want order that desc whit create time

my controller:

    public function actionIndex()
    {
      
         $dataProviderlatenew=new ActiveDataProvider([
             'query'=>Post::find(),
             'pagination'=>[
             'pageSize'=>9,
             ],
             ]);
         return $this->render('index',[
            'dataProviderlatenew'=>$dataProviderlatenew,
            ]);

    }
index.php:

    <ul id="ticker01" class="news_sticker">
    <?php echo ListView::widget([
    'dataProvider'=>$dataProviderlatenew,
    'itemView'=>'latest_news',
    'summary' => '',
    'itemOptions' => [
         'tag' => false
     ],
     'pager' => [
     'options' => [
            'tag' => 'div',
             'style' => 'display: none;',
            'id' => 'pager-container',
            'class'=>'',
        ],
     ],
     ]);?>
 
      </ul>

latest_news.php

     <li><a href="<?=\yii\helpers\Url::to(['/post/show','title'=>$model->title])?>"><?=$model->title?></a></li>

if there is better way plaese say. thank you