Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Controller
Noroute
Index.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Controller\Noroute
;
8
9
class
Index
extends
\Magento\Framework\App\Action\Action
10
{
16
public
function
execute
()
17
{
18
$status
= $this->
getRequest
()->getParam(
'__status__'
);
19
if
(!
$status
instanceof \
Magento
\Framework\
DataObject
) {
20
$status
= new \Magento\Framework\DataObject();
21
}
22
23
$this->_eventManager->dispatch(
'controller_action_noroute'
, [
'action'
=> $this,
'status'
=>
$status
]);
24
25
if
(
$status
->getLoaded() !==
true
||
$status
->getForwarded() ===
true
) {
26
$this->_view->loadLayout([
'default'
,
'noroute'
]);
27
$this->_view->renderLayout();
28
}
else
{
29
$status
->setForwarded(
true
);
30
$request
= $this->
getRequest
();
31
$request
->initForward();
32
$request
->setParams([
'__status__'
=>
$status
]);
33
$request
->setControllerName(
$status
->getForwardController());
34
$request
->setModuleName(
$status
->getForwardModule());
35
$request
->setActionName(
$status
->getForwardAction())->setDispatched(
false
);
36
}
37
}
38
}
Magento\Framework\Controller\Noroute\Index
Definition:
Index.php:9
Magento\Framework\Controller\Noroute\Index\execute
execute()
Definition:
Index.php:16
Magento\Framework\DataObject
Definition:
DataObject.php:15
Magento\Framework\App\Action\AbstractAction\getRequest
getRequest()
Definition:
AbstractAction.php:60
$status
$status
Definition:
order_status.php:8
Magento
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22
Magento\Framework\Controller\Noroute
Definition:
Index.php:7
Magento\Framework\App\Action\Action
Definition:
Action.php:25