Magento 2 Entwicklung: Unterschied zwischen den Versionen
Aus Vosp.info
V (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „== Code Migration 1.x => 2.x == === Bilder === ==== 1.x ==== <source lang=php> <img src="<?php echo $this->getSkinUrl('images/product/dir/name.jpg'); ?>" alt="…“) |
V (Diskussion | Beiträge) |
||
Zeile 8: | Zeile 8: | ||
<source lang=php> | <source lang=php> | ||
<img src="<?php echo $this->getViewFileUrl('images/product/dir/name.jpg'); ?>" alt="<?php echo __('Name'); ?>" /> | <img src="<?php echo $this->getViewFileUrl('images/product/dir/name.jpg'); ?>" alt="<?php echo __('Name'); ?>" /> | ||
+ | </source> | ||
+ | === Helper === | ||
+ | ==== 1.x ==== | ||
+ | <source lang=php> | ||
+ | Mage::helper('anchelper')->ancfnc(); | ||
+ | </source> | ||
+ | ==== 2.x ==== | ||
+ | <source lang=php> | ||
+ | $this->helper('Anc\Appname\Helper\Anchelper'); | ||
</source> | </source> |
Version vom 13. März 2017, 10:04 Uhr
Inhaltsverzeichnis
Code Migration 1.x => 2.x
Bilder
1.x
<img src="<?php echo $this->getSkinUrl('images/product/dir/name.jpg'); ?>" alt="<?php echo $this->__('Name'); ?>"
2.x
<img src="<?php echo $this->getViewFileUrl('images/product/dir/name.jpg'); ?>" alt="<?php echo __('Name'); ?>" />
Helper
1.x
Mage::helper('anchelper')->ancfnc();
2.x
$this->helper('Anc\Appname\Helper\Anchelper');