fiko/magento2-adminurl
Composer 安装命令:
composer require fiko/magento2-adminurl
包简介
Create direct URL to magento2 adminhtml.
README 文档
README
It's a magento 2 module to create a direct URL to adminhtml page without being redirected to dashboard.
How to install?
Via Composer
If you try to install via composer, just require your project to the module by running this command :
composer require fiko/magento2-adminurl
Manually
- Download this repo
- Create a Directory
app/code/Fiko/AdminUrl - Copy downloaded repo to this directory
Once you download it (both composer or manually), just run this commands to apply this module to your project :
php bin/magento setup:upgrade --keep-generated
php bin/magento setup:di:compile
How to use?
Simply just use the model
class Example
{
public function __construct(
.......
\Fiko\AdminUrl\Model\Url $adminUrl
.......
) {
.......
$this->adminUrl = $adminUrl;
.......
}
public function execute()
{
$catalogUrl = $this->adminUrl->getUrl('catalog/index/index');
}
}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
MIT © 2022
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-31