Uncaught Error: Undefined constant 'Product\SizeChart\Helper\Data' in /opt/lampp/htdocs/M2/app/code/Product/SizeChart/view/frontend/templates/size.phtml:48 Stack trace: #0 /opt/lampp/htdocs/M2/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /opt/lampp/htdocs/M2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\TemplateEngine\Php->render(Object(Product\SizeChart\Block\Display), '/opt/lampp/htdo...', Array) #2 /opt/lampp/htdocs/M2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent('render', Array) #3 /opt/lampp/htdocs/M2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception{closure}(Object(Product\SizeChart\Block\Display), '/opt/lampp/htdo...', Array) #4 /opt/lampp/htdocs/M2/generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php(26): Magento\Framework\View\TemplateEngine\ in /opt/lampp/htdocs/M2/app/code/Product/SizeChart/view/frontend/templates/size.phtml on line 48
here is my helper code:
Uncaught<?php Error:namespace UndefinedProduct\SizeChart\Helper;
use constant\Magento\Framework\App\Action\Context;
use 'Product\SizeChart\Helper\Data'\Product\SizeChart\Model\CurdFactory;
class inData /opt/lampp/htdocs/M2/app/code/Product/SizeChart/view/frontend/templates/size.phtml:48extends Stack\Magento\Framework\App\Helper\AbstractHelper
{
trace: #0 /opt/lampp/htdocs/M2/vendor/magento/framework/View/TemplateEngine/Php.php(59): include()protected #1$curdFactory;
/opt/lampp/htdocs/M2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\TemplateEngine\Php->render(Object(Product\SizeChart\Block\Display), '/opt/lampp/htdo...', Array)
#2 /opt/lampp/htdocs/M2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent('render', Array)public #3function /opt/lampp/htdocs/M2/vendor/magento/framework/Interception/Interceptor.php__construct(153):
Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}(Object(Product\SizeChart\Block\Display) Context $context,
'/opt/lampp/htdo...' CurdFactory $curdFactory,
Array) #4 /opt/lampp/htdocs/M2/generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php(26 $data = []
): Magento\Framework\View\TemplateEngine\ in /opt/lampp/htdocs/M2/app/code/Product/SizeChart/view/frontend/templates/size.phtml on line{
48
here is my helper code:
curdFactory $this->curdFactory = $curdFactory;
parent::__construct($context, $data);
}
public function getCollection()
{
return $this->curdFactory>curdFactory->create>create()->getCollection>getCollection();
}
}