PHP code example of rosgear / rg-wd-articles
1. Go to this page and download the library: Download rosgear/rg-wd-articles 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/ */
rosgear / rg-wd-articles example snippets
$list = Ge::$app->widgets->get('rg.wd.articles', ['sort' => 'date', limit' => 10]);
$list->run();
use Rg\Widget\Articles\Widget as List;
echo List::widget(['mode' => 'list', pagination' => ['limit' => 20]]);