learnphp
Lear Yii
Lear Yii
  • Yii framework - Tìm hiểu cấu trúc và chạy thử với basic application (ok)
  • 😌Working with Databases, Database Migration Full (ok)
  • Use yiisoft/yii2-bootstrap5 (ok)
  • Starting Gii (ok)
  • Generating Code with Gii
  • How to Program With Yii2: Exploring MVC, Forms and Layouts (ok)
  • How to Program With Yii2: Working With the Database and Active Record (ok)
  • 😅Create Page Signup, login, article (ok)
  • Migrate Full (ok)
  • Send Mail Full (ok)
  • 😆Config Setting .htaccess Yii-basic Full (ok)
  • 😆Blog on Yii Framework 2 (ok)
  • 🥲Cấu hình 1 website Yii2 Advanced từ đầu P1, nghiên cứ rules 👏 (ok)
  • 😅Site Map, sitemap phongkhamthienhoa.vn (ok)
  • 😅Project examples (ok)
  • 😅Yii Tutorial
  • 😂Pagination phongkhamthienhoa.vn (ok)
Powered by GitBook
On this page

Was this helpful?

Use yiisoft/yii2-bootstrap5 (ok)

https://github.com/yiisoft/yii2-bootstrap5

C:\xampp74\htdocs\oectest\views\country\index.php

<?php
use yii\bootstrap5\LinkPager;
// use yii\widgets\LinkPager;
use yii\helpers\Html;
?>
<h1>Countries</h1>
<ul>
<?php foreach ($countries as $country): ?>
  <li>
    <?=Html::encode("{$country->code} ({$country->name})")?>:
    <?=$country->population?>
  </li>
<?php endforeach;?>
</ul>
<?=LinkPager::widget(['pagination' => $pagination])?>
PreviousWorking with Databases, Database Migration Full (ok)NextStarting Gii (ok)

Last updated 2 years ago

Was this helpful?