Difference between _forward() and _redirect() action in magento 2

_forward() just forwards everything to another controller action, while _redirect() sends a header, meaning you create a new HTTP Request and go through the entire dispatch process with it. _forward() protected function will edit the request to transfer it to another controller/action class. This will not change the request url. _redirect() This method will redirect to another controller/action class and also change the response http header and the request url. For instance, if you call up http://www.webtechbuzz.com/foo/bar you’d call the …

Read More

getting issue in ui component form

Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must be of the type array, null given, called in /var/www/magentor00t/vendor/magento/framework/View/Element/UiComponentFactory.php on line 198 and defined in /var/www/magentor00t/vendor/magento/framework/View/Element/UiComponentFactory.php:164 Stack trace: #0 /var/www/magentor00t/vendor/magento/framework/View/Element/UiComponentFactory.php(198): Magento\Framework\View\Element\UiComponentFactory->argumentsResolver(‘createfilter_fo…’, NULL) #1 /var/www/magentor00t/vendor/magento/framework/View/Layout/Generator/UiComponent.php(135): Magento\Framework\View\Element\UiComponentFactory->create(‘createfilter_fo…’, NULL, Array) #2 /var/www/magentor00t/vendor/magento/framework/View/Layout/Generator/UiComponent.php(97): Magento\Framework\View\Layout\Generator\UiComponent->generateComponent(Object(Magento\Framework\View\Layout\Data\Structure), ‘createfilter_fo…’, Array, Object(Magento\Framework\View\Layout\Intercep in /var/www/magentor00t/vendor/magento/framework/View/Element/UiComponentFactory.php on line 164

Read More