Guest User

Untitled

a guest
Jun 18th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. [2018-06-18 14:59:10] report.INFO: Broken reference: the 'notification.messages' tries to reorder itself towards 'user', but their parents are different: 'header.inner.right' and 'header' respectively. [] []
  2.  
  3. public function execute()
  4. {
  5. try {
  6. $imageId = $this->_request->getParam('param_name', 'cat_head_img');
  7.  
  8. $result = $this->imageUploader->saveFileToTmpDir($imageId);
  9.  
  10. $result['cookie'] = [
  11. 'name' => $this->_getSession()->getName(),
  12. 'value' => $this->_getSession()->getSessionId(),
  13. 'lifetime' => $this->_getSession()->getCookieLifetime(),
  14. 'path' => $this->_getSession()->getCookiePath(),
  15. 'domain' => $this->_getSession()->getCookieDomain(),
  16. ];
  17. return $this->resultFactory->create(ResultFactory::TYPE_JSON)->setData($result);
  18. } catch (Exception $e) {
  19. $this->logger->critical('Cat Header message', ['exception' => $e]);
  20. }
  21. }
  22.  
  23. <formElements>
  24. <fileUploader>
  25. <settings>
  26. <required>false</required>
  27. <uploaderConfig>
  28. <param xsi:type="url" name="url" path="catalog/category_header/upload"/>
  29. </uploaderConfig>
  30. <previewTmpl>Magento_Catalog/image-preview</previewTmpl>
  31. </settings>
  32. </fileUploader>
  33. </formElements>
  34.  
  35. <?xml version="1.0"?>
  36. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
  37. <router id="standard">
  38. <route id="categoryheader" frontName="categoryheader">
  39. <module name="Sportys_Categoryheader" />
  40. </route>
  41. </router>
  42. </config>
Add Comment
Please, Sign In to add comment