Guest User

Untitled

a guest
Jan 17th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  3. <body>
  4. <referenceBlock name="customer_account_navigation">
  5. <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="customer-account-navigation-suppport-ticket-link" after="-">
  6. <arguments>
  7. <argument name="path" xsi:type="string">support/customer/index</argument>
  8. <argument name="label" xsi:type="string">Support Ticket</argument>
  9. </arguments>
  10. </block>
  11. </referenceBlock>
  12. </body>
  13. </page>
  14.  
  15. <?xml version="1.0"?>
  16. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  17. <update handle="customer_account"/>
  18. <head>
  19. <title>Support Ticket</title>
  20. <css src="Namespace_Support::css/styles.css"/>
  21. </head>
  22. <body>
  23. <referenceContainer name="content">
  24. <block class="NamespaceSupportBlockTicketList" name="ticketViewList" template="Namespace_Support::list.phtml" />
  25. </referenceContainer>
  26. </body>
  27. </page>
  28.  
  29. <?php echo 'hello' ;?>
  30.  
  31. <?xml version="1.0"?>
  32. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
  33. <module name="Namespace_Support" setup_version="1.0.0">
  34. <sequence>
  35. <module name="Magento_Customer"/>
  36. </sequence>
  37. </module>
  38. </config>
  39.  
  40. <?php
  41. namespace NamespaceSupportControllerCustomer;
  42.  
  43. use MagentoFrameworkAppAction;
  44. use MagentoFrameworkExceptionNotFoundException;
  45. use MagentoFrameworkControllerResultFactory;
  46.  
  47. class Index extends NamespaceSupportControllerIndex
  48. {
  49. /**
  50. * Show customer tickets
  51. *
  52. * @return MagentoFrameworkViewResultPage
  53. * @throws NotFoundException
  54. */
  55. public function execute()
  56. {
  57. /** @var MagentoFrameworkViewResultPage resultPage */
  58. $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
  59. return $resultPage;
  60. }
  61. }
  62.  
  63. <?php
  64.  
  65. namespace NamespaceSupportBlockTicketList;
  66.  
  67.  
  68. class TicketList extends MagentoFrameworkViewElementTemplate {
  69.  
  70. public function __construct(MagentoCatalogBlockProductContext $context, array $data = []) {
  71.  
  72. parent::__construct($context, $data);
  73.  
  74. }
  75.  
  76.  
  77. protected function _prepareLayout()
  78. {
  79. return parent::_prepareLayout();
  80. }
  81.  
  82. }
  83.  
  84. <?php
  85. MagentoFrameworkComponentComponentRegistrar::register(
  86. MagentoFrameworkComponentComponentRegistrar::MODULE,
  87. 'Namespace_Support',
  88. __DIR__
  89. );
Add Comment
Please, Sign In to add comment