Example #1
0
 public function loadAction()
 {
     parent::loadAction();
     /** @var Repository $repo */
     $repo = Shopware()->Models()->getRepository('Shopware\\CustomModels\\SwagDynamicEmotion\\Store');
     // this will make our emotion id available in the (smarty) template of our backend application
     $this->View()->assign('storeTemplateEmotionId', $repo->getStoreEmotionId());
 }