Guest User

Untitled

a guest
Oct 22nd, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. class Selectpage implements MagentoFrameworkOptionArrayInterface{
  2. public function toOptionArray()
  3. {
  4. $options = [
  5. [
  6. 'label' => __('-- Please select --'),
  7. 'value' => '',
  8. ],
  9. [
  10. 'label' => __('Home Page '),
  11. 'value' => '1',
  12. ],
  13. [
  14. 'label' => __('404 Page'),
  15. 'value' => '2',
  16. ],
  17. [
  18. 'label' => __('About Page'),
  19. 'value' => '3',
  20. ],
  21.  
  22. ];
  23. return $options;
  24. }
  25.  
  26. <?xml version="1.0"?>
  27. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
  28. <head>
  29. <title>Sample Paage</title>
  30. <css src="Namespace_Module::css/mycsss.css"/>
  31.  
  32. </head>
  33. <body>
  34. <referenceContainer name="content">
  35. <block class="NamespaceModuleBlockPopupIndex" name="popup_index" template="popup/index.phtml">
  36. </block>
  37. </referenceContainer>
  38. </body>
  39. </page>
Add Comment
Please, Sign In to add comment