rosgear/rg-wd-article
Composer 安装命令:
composer require rosgear/rg-wd-article
包简介
Widget "Article" for the RosGear web application
README 文档
README
Виджет «Материал»
Виджет предназначен для отображения материала (статьи) из базы данных на странице веб-сайта.
Пример применения
с менеджером виджетов:
$articles = Ge::$app->widgets->get(
'rg.wd.article',
[
'showHeader' => false,
'viewFile' => '/articles/default.phtml'
]
);
$articles->run();
в шаблоне:
echo $this->widget(
'rg.wd.article', [
[
'showHeader' => false,
'viewFile' => '/articles/default.phtml'
]
]);
с namespace:
use Rg\Widget\Article\Widget as Article;
echo Article::widget(
'rg.wd.article', [
[
'showHeader' => false,
'viewFile' => '/articles/default.phtml'
]
);
если namespace ранее не добавлен в PSR, необходимо выполнить:
Ge::$loader->addPsr4('Rg\Widget\Article\\', Ge::$app->modulePath . '/rg/rg.wd.article/src');
Установка
Для добавления виджета в ваш проект, вы можете просто выполнить команду ниже:
$ composer require rosgear/rg-wd-article
или добавить в файл composer.json вашего проекта:
"require": {
"rosgear/rg-wd-article": "*"
}
или скачать архив на странице виджета в каталоге приложений RosGear.
После добавления виджета в проект выполните его установку в редакцию веб‑приложения с помощью Панели управления GePanel.
Widget «Article»
The widget is designed to display material (articles) from the database on a website page.
Installation
To add the widget to your project, you can simply run the command below:
$ composer require rosgear/rg-wd-article
or add to your project's composer.json file:
"require": {
"rosgear/rg-wd-article": "*"
}
or download the archive from the widget page in the RosGear application catalog.
After adding the widget to the project, install it into the web application edition using the GePanel Control Panel.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-19