Skip to content

admin-controller

Auto Added by WPeMatico

In M2.4.7, what is the correct way to implement an Admin Controller that checks ACL and User Login status?

With MagentoBackendAppAbstractAction and MagentoFrameworkAppActionAction being deprecated and advising in the scripts to use MagentoFrameworkAppActionInterface, what is the correct way to implement an admin Controller that will check the users ACL rights to view the page and also if the user… Read More »In M2.4.7, what is the correct way to implement an Admin Controller that checks ACL and User Login status?

How to remove the Deprecated property of __construct from Abstract Class using overriding or any other way

Error main.ERROR: Deprecated Functionality: Creation of dynamic property MagiccartMagicproductControllerAdminhtmlProductIndexInterceptor::$_resultRedirectFactory is deprecated in vendor/magiccart/magicproduct/Controller/Adminhtml/Action.php on line 78 Class namespace MagiccartMagicproductControllerAdminhtmlAction abstract class Action extends MagentoBackendAppAction { public function __construct( MagentoBackendAppActionContext $context, ) { parent::__construct($context); $this->_resultRedirectFactory = $context->getResultRedirectFactory(); } Class MagiccartMagicproductControllerAdminhtmlProductIndex class… Read More »How to remove the Deprecated property of __construct from Abstract Class using overriding or any other way

magento 2 admin create and download csv file and loading problem

Please loading issue solve. I try to reload or redirect but that is not working. $resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT); $resultRedirect->setPath(‘*/*/’); return $resultRedirect; My code is -> $name = date(‘m_d_Y_H_i_s’); $filepath = ‘export/custom’ . $name . ‘.csv’; $this->directory->create(‘export’); /* Open file */… Read More »magento 2 admin create and download csv file and loading problem

A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later. Ajax call

I have a problem here. I use Ajax call to send data to controller. define([ ‘jquery’, ‘Magento_Ui/js/form/components/button’ ], function($, button){ ‘use strict’; return button.extend({ defaults: { elementTmpl: ‘ui/form/element/button’, imports: { data: ‘${ $.provider }:data’ } }, initialize: function () {… Read More »A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later. Ajax call

Invaild security or form key, please refresh your page

i hit the url backendnotification/index/index this error show what is wrong route and controller this is my route code <router id=”admin”> <route id=”backendnotification” frontName=”backendnotification”> <module name=”Testing_ScheduleContentNotifier”/> </route> </router> </config> This is my controller code under Testing/ScheduleContentNotifier/Controller/Adminhtml/Index/Index.php <?php namespace TestingScheduleContentNotifierControllerAdminhtmlIndex; use… Read More »Invaild security or form key, please refresh your page

1 exception(s): Exception #0 (ReflectionException): Class “MyVendorSubOrderControllerAdminhtmlOrderViewInterceptor” does not exist

I am creating a suborder view page in BackOffice that retrieves data from the customized table. However, I received an error on above topic when I click the view button in my customized grid. Did I write the wrong code?… Read More »1 exception(s): Exception #0 (ReflectionException): Class “MyVendorSubOrderControllerAdminhtmlOrderViewInterceptor” does not exist