Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
- <body>
- <referenceBlock name="customer_account_navigation">
- <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="customer-account-navigation-suppport-ticket-link" after="-">
- <arguments>
- <argument name="path" xsi:type="string">support/customer/index</argument>
- <argument name="label" xsi:type="string">Support Ticket</argument>
- </arguments>
- </block>
- </referenceBlock>
- </body>
- </page>
- <?xml version="1.0"?>
- <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
- <update handle="customer_account"/>
- <head>
- <title>Support Ticket</title>
- <css src="Namespace_Support::css/styles.css"/>
- </head>
- <body>
- <referenceContainer name="content">
- <block class="NamespaceSupportBlockTicketList" name="ticketViewList" template="Namespace_Support::list.phtml" />
- </referenceContainer>
- </body>
- </page>
- <?php echo 'hello' ;?>
- <?xml version="1.0"?>
- <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
- <module name="Namespace_Support" setup_version="1.0.0">
- <sequence>
- <module name="Magento_Customer"/>
- </sequence>
- </module>
- </config>
- <?php
- namespace NamespaceSupportControllerCustomer;
- use MagentoFrameworkAppAction;
- use MagentoFrameworkExceptionNotFoundException;
- use MagentoFrameworkControllerResultFactory;
- class Index extends NamespaceSupportControllerIndex
- {
- /**
- * Show customer tickets
- *
- * @return MagentoFrameworkViewResultPage
- * @throws NotFoundException
- */
- public function execute()
- {
- /** @var MagentoFrameworkViewResultPage resultPage */
- $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
- return $resultPage;
- }
- }
- <?php
- namespace NamespaceSupportBlockTicketList;
- class TicketList extends MagentoFrameworkViewElementTemplate {
- public function __construct(MagentoCatalogBlockProductContext $context, array $data = []) {
- parent::__construct($context, $data);
- }
- protected function _prepareLayout()
- {
- return parent::_prepareLayout();
- }
- }
- <?php
- MagentoFrameworkComponentComponentRegistrar::register(
- MagentoFrameworkComponentComponentRegistrar::MODULE,
- 'Namespace_Support',
- __DIR__
- );
Add Comment
Please, Sign In to add comment