Skip to content

magento man

Page cannot be found from controller even set the routes.xml

I want to add a page by the controller, I have set the routes and controller files according to the guideline. However, it still cant show the page. app/code/Mymodule/OrderController/Controller/Page/View.php <?php namespace MymoduleOrderControllerControllerPage; use MagentoSalesModelResourceModelOrderCollectionFactory; use MagentoFrameworkControllerResultJsonFactory; use MagentoFrameworkAppActionContext; class View… Read More »Page cannot be found from controller even set the routes.xml

Unable to redirect from plugin

I am trying to redirect from plugin file but seems no response. Anyone can help? app/code/Myvendor/ReviewCheck/Plugin/ReviewModel.php <?php namespace MyvendorReviewCheckPlugin; use MagentoFrameworkMessageManagerInterface as MessageManagerInterface; use MagentoFrameworkViewElementTemplateContext; class ReviewModel { protected $messageManager; protected $request; protected $redirectFactory; public function __construct( MessageManagerInterface $messageManager, MagentoFrameworkAppRequestHttp… Read More »Unable to redirect from plugin