Guest User

imagemenu-bootstrap

a guest
Feb 24th, 2014
4,626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.98 KB | None | 0 0
  1. <?php
  2. class Shopware_Plugins_Frontend_LobbyImagemenu_Bootstrap extends Shopware_Components_Plugin_Bootstrap {
  3.     public function install()
  4.     {
  5.         $component = $this->createEmotionComponent(array(
  6.             'name' => 'Imagemenu',
  7.             'xtype' => 'emotion-imagemenu',
  8.             'template' => 'imagemenu',
  9.             'cls' => 'imagemenu',
  10.             'description' => 'Imagemenu'
  11.         ));
  12.  
  13.         $component->createHiddenField(array(
  14.             'name' => 'imagemenu',
  15.             'defaultValue' => false,
  16.             'valueType' => 'json'
  17.         ));
  18.         return true;
  19.     }
  20.  
  21.     private function registerEvents()
  22.     {
  23.         $this->subscribeEvent(
  24.             'Enlight_Controller_Action_PostDispatch_Frontend_Index',
  25.             'onPostDispatchFrontend'
  26.         );
  27.     }
  28.     public function onPostDispatchFrontend(Enlight_Event_EventArgs $arguments)
  29.     {
  30.         echo "<pre>";
  31.         print_r($arguments);
  32.         echo "</pre>";
  33.  
  34.     }
  35. }
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment