Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Shopware_Plugins_Frontend_LobbyImagemenu_Bootstrap extends Shopware_Components_Plugin_Bootstrap {
- public function install()
- {
- $component = $this->createEmotionComponent(array(
- 'name' => 'Imagemenu',
- 'xtype' => 'emotion-imagemenu',
- 'template' => 'imagemenu',
- 'cls' => 'imagemenu',
- 'description' => 'Imagemenu'
- ));
- $component->createHiddenField(array(
- 'name' => 'imagemenu',
- 'defaultValue' => false,
- 'valueType' => 'json'
- ));
- return true;
- }
- private function registerEvents()
- {
- $this->subscribeEvent(
- 'Enlight_Controller_Action_PostDispatch_Frontend_Index',
- 'onPostDispatchFrontend'
- );
- }
- public function onPostDispatchFrontend(Enlight_Event_EventArgs $arguments)
- {
- echo "<pre>";
- print_r($arguments);
- echo "</pre>";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment