how to use geturl function to custom page in php value in magento 2
Question
<a href="<?php /* @escapeNotVerified */ echo $block->getUrl(
'mpquotesystem/sellerquote/quoteedit/id/404/',
['_secure' => $block->getIsSecure()]
);?>">
I want to give number is dynamic
echo $block->getUrl('mpquotesystem/sellerquote/quoteedit/id/404/', //404 -
here I want to give $id how I can do this
La solution
Try following way
<a href="<?php /* @escapeNotVerified */ echo $block->getUrl(
'mpquotesystem/sellerquote/quoteedit',
['id'=> $id,'_secure' => $block->getIsSecure()]
);?>">
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange