Table custom like this
I want get data from table " custom " by id in block magento 2. Please help me! Thanks all
UPDATE
I want get data by " custom_id "
UPDATE
function __construct
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
\Webkul\MpSellerMapLocator\Model\Mpsellermaplocator $mpSellerMapLocatorModel,
array $data = []
) {
parent::__construct($context, $data);
$this->mpSellerMapLocatorModel = $mpSellerMapLocatorModel;
}
get data
$customId = 4;
$marketplaceMpsellermaplocator = $this->mpSellerMapLocatorModel->addFieldToFilter('custom_id', $customId);
echo "<pre>";var_dump($marketplaceMpsellermaplocator->getData());
exit;