Skip to content

admin

Auto Added by WPeMatico

In my data-provider addFieldtoFilter() is not working with url param

I have made a grid in admin that is supposed to return a filtered collection based on a URL parameter lesson_id. DataProvider: <?php namespace VendorNameModuleNameUiDataProviderParticipants; use MagentoFrameworkAppRequestHttp; use VendorNameModuleNameModelResourceModelParticipantsCollectionFactory; class DataProvider extends MagentoUiDataProviderAbstractDataProvider { public function __construct( $name, $primaryFieldName, $requestFieldName,… Read More »In my data-provider addFieldtoFilter() is not working with url param

Magento 2: Call custom admin controller from frontend

Is there a way to call custom admin controller (which prints a pdf file from sales order view page) from frontend download anchor link? <a href=”http://m7.local/index.php/admin/magemechanic_workorder/order/print/order_id/<?php echo $orderId ?>” download>Download</a>