New answers tagged


Try controller_action_predispatch Event :- Vendor/ModuleName/etc/events.xml <?xml version="1.0"?> <config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="controller_action_predispatch"> <...


Firstly I see some concern/ The name of the modules folders must be capitalized as follows: /app/code/Vendor/Module The name of the module in the module.xml file be as follows <module name="Vendor_Module" setup_version="1.0.0">


Re-write the Controller like this and then it will work <?php namespace Netzz\ShippingRework\Controller\Vendor; class Vendorsettingpost extends \Magento\Framework\App\Action\Action { public function execute() { $this->getpost(); } public function getpost() { $post = $this->getRequest()->getParams(); ...


Put your getpost function out side of execute function. Then It should work

Top 50 recent answers are included